After I edited the GUI in Qt-Creator and when I want to run software in Debug/Release mode, I always get an error of "no member named 'setMarkdown' in 'QTextEdit'".
The only way to solve this issue is to replace all the from "setMarkdown" to "setWindowTitle" manually.
If any way to can solve this issue automatically, Thanks!
ERROR:
ui_mainwindow.h:685: error: no member named 'setMarkdown' in 'QTextEdit'
./ui_mainwindow.h:685:43: error: no member named 'setMarkdown' in 'QTextEdit'
test->setMarkdown(QString());
~~~~~~~ ^
Related
I'm trying to use relay-runtime with freshjs by importing it with these strings in my import map:
"react-relay": "https://esm.sh/react-relay#14.1.0?alias=react:preact/compat,react-dom:preact/compat,#types/react:preact/compat",
"relay-runtime": "https://esm.sh/relay-runtime#14.1.0?alias=react:preact/compat,react-dom:preact/compat,#types/react:preact/compat",
and when doing so, I get this error:
error: Uncaught (in promise) TypeError: Jl is not a function
at https://esm.sh/v94/relay-runtime#14.1.0/deno/relay-runtime.js:2:4933
at https://esm.sh/v94/relay-runtime#14.1.0/deno/relay-runtime.js:2:1389
at https://esm.sh/v94/relay-runtime#14.1.0/deno/relay-runtime.js:2:7965
at https://esm.sh/v94/relay-runtime#14.1.0/deno/relay-runtime.js:2:1389
at https://esm.sh/v94/relay-runtime#14.1.0/deno/relay-runtime.js:3:82513
at https://esm.sh/v94/relay-runtime#14.1.0/deno/relay-runtime.js:2:1389
at https://esm.sh/v94/relay-runtime#14.1.0/deno/relay-runtime.js:3:85815
at https://esm.sh/v94/relay-runtime#14.1.0/deno/relay-runtime.js:2:1389
at https://esm.sh/v94/relay-runtime#14.1.0/deno/relay-runtime.js:3:85832
I tried to import type declarations from https://esm.sh/v94/#types/relay-runtime#14.1.0/index.d.ts but am still having this issue. I had also tried to use v14.0.0 but then I get this error:
error: Uncaught (in promise) Error: Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.
at V (https://esm.sh/v96/invariant#2.2.4/deno/invariant.js:2:612)
at sv (https://esm.sh/v96/relay-runtime#14.0.0/X-YS9yZWFjdDpwcmVhY3QvY29tcGF0/deno/relay-runtime.js:2:45152)
at https://esm.sh/v96/react-relay#14.0.0/X-YS9yZWFjdDpwcmVhY3QvY29tcGF0/deno/react-relay.js:2:3114
at https://esm.sh/v96/react-relay#14.0.0/X-YS9yZWFjdDpwcmVhY3QvY29tcGF0/deno/react-relay.js:2:2662
at https://esm.sh/v96/react-relay#14.0.0/X-YS9yZWFjdDpwcmVhY3QvY29tcGF0/deno/react-relay.js:2:70288
at https://esm.sh/v96/react-relay#14.0.0/X-YS9yZWFjdDpwcmVhY3QvY29tcGF0/deno/react-relay.js:2:2662
at https://esm.sh/v96/react-relay#14.0.0/X-YS9yZWFjdDpwcmVhY3QvY29tcGF0/deno/react-relay.js:2:71428
at https://esm.sh/v96/react-relay#14.0.0/X-YS9yZWFjdDpwcmVhY3QvY29tcGF0/deno/react-relay.js:2:2662
Any help is appreciated. Thank you. I also tried importing initially without the query string
I am trying to use Sage on a mac and am not particularly computer savvy (e.g. I still haven't figured out what I am meant to do with PATH and find the installation documentation a bit forbidding). I am running sage from the command line from a particular folder which contains a file "test.sage" but when I put 'load("test.sage")' I get the following error message:
TypeError Traceback (most recent call last)
in ()
----> 1 load("test.sage")
/Applications/SageMath/src/sage/structure/sage_object.pyx in sage.structure.sage_object.load (/Applications/SageMath/src/build/cythonized/sage/structure/sage_object.c:11186)()
if sage.repl.load.is_loadable_filename(filename):
sage.repl.load.load(filename, globals())
return
/Applications/SageMath/local/lib/python2.7/site-packages/sage/repl/load.pyc in load(filename, globals, attach)
if attach:
add_attached_file(fpath)
exec(preparse_file(open(fpath).read()) + "\n", globals)
elif ext == '.spyx' or ext == '.pyx':
if attach:
Error message
TypeError: expected string without null bytes"
Earlier on I was trying the same thing and getting the message:
"IOError('did not find file %r to load or attach'"
I wonder if someone could tell me what I am doing wrong or might try to fix the problem?
I am using this site here. http://retroshare.sourceforge.net/wiki/index.php/Win32CompileLibrariesMingw#Compile_OpenSSL
and I have come across a problem. The error is
In file included from /usr/include/w32api/windows.h:95:0, from sqlite3.c:9607:
/cygdrive/c/sqlcipher-2.2.0/../openssl-1.0.1c/include/openssl/ossl_typ.h:153:29: error: expected ‘)’ before numeric constant typedef struct X509_name_st X509_NAME;
/cygdrive/c/sqlcipher-2.2.0/../openssl-1.0.1c/include/openssl/ossl_typ.h:199:33: error: expected ‘)’ before numeric constant typedef struct ocsp_response_st OCSP_RESPONSE;
Makefile:573: recipe for target 'sqlite3.lo' failed
make: *** [sqlite3.lo] Error 1
I opened the ossl_typ.h file to find only 1 line in it so i am not able to trace the error. Thank you for your help!
I came across the same problem trying to build sqlcipher. The problem is that recent versions of minGW define X509_NAME and OCSP_RESPONSE.
You need to add CFLAGS="-DNOCRYPT" to your ./configure, e.g. ./configure --enable-tempstore=yes CFLAGS="-DSQLITE_HAS_CODEC -DSQLITE_TEMP_STORE=2 -DNOCRYPT -lcrypto" in order to tell the compiler not to define these constants first.
Here is a link that explain the problem : http://cygwin.com/ml/cygwin/2012-12/msg00194.html
It's a bit annoying that when I hit a break point in XCode 4, values of Watch Expressions are always grayed out. I have to create dummy variables pointing to the thing I want to watch in order to get around it.
The log says the following errors when I run the app:
warning: Unable to read symbols for /Developer/Platforms/iPhoneOS.platform/DeviceSupport/4.3.3 (8J2)/Symbols/System/Library/Frameworks/IOKit.framework/IOKit (file not found).
warning: Tried to remove a non-existent library: /Developer/Platforms/iPhoneOS.platform/DeviceSupport/4.3.3 (8J2)/Symbols/System/Library/Frameworks/IOKit.framework/IOKit
Current language: auto; currently objective-c++
warning: Unable to read symbols for /Developer/Platforms/iPhoneOS.platform/DeviceSupport/4.3.3 (8J2)/Symbols/Developer/usr/lib/libXcodeDebuggerSupport.dylib (file not found).
How can I fix this?
As for myself, I debug variables using two handy GDB console commands. You can enter them when in debug mode in debug console after GDB mark. I use "p" command for printing basic C type variables:
p [[[self pointerToMyClass] anotherPointerToOtherClass] someIntValue]
And I use "po" command for printing content of arrays, for checking objects:
po [[[self pointerToMyClass] anotherPointerToOtherClass] someNSArray]
po [[[self pointerToMyClass] anotherPointerToOtherClass] myUIImageView]
I have a DLL in wich I would like to take a reference to a QObject and manipulate it, without actually creating an interface. So, I included "Qt/qobject.h" and compiled, but the compiler (Visual Studio 2008 pro) gives me syntax errors. It looks like it doesn't recognize the QThread object. How do I use a QObject in my dll? Is this even possible? Do I have to start my program from a Qt app? I'm actually trying to set a system-wide hook and get 3rd application QWidgets to manipulate... Any idea how I can use QObject in my dll?
Here are the errors:
1>------ Build started: Project: FroggerDLL, Configuration: Debug Win32 ------
1>Compiling...
1>FTClient.cpp
1>c:\qt-win-opensource-src-4.5.2\src\corelib\kernel\qobject.h(154) : error C2059: syntax error : 'type'
1>c:\qt-win-opensource-src-4.5.2\src\corelib\kernel\qobject.h(154) : error C2238: unexpected token(s) preceding ';'
1>c:\qt-win-opensource-src-4.5.2\src\corelib\kernel\qobject.h(155) : error C2144: syntax error : 'int' should be preceded by ')'
1>c:\qt-win-opensource-src-4.5.2\src\corelib\kernel\qobject.h(155) : error C2144: syntax error : 'int' should be preceded by ';'
1>c:\qt-win-opensource-src-4.5.2\src\corelib\kernel\qobject.h(155) : error C2059: syntax error : ')'
1>c:\qt-win-opensource-src-4.5.2\src\corelib\kernel\qobject.h(155) : error C2208: 'int' : no members defined using this type
1>FroggerDLL - 6 error(s), 1 warning(s)
========== Build: 0 succeeded, 1 failed, 3 up-to-date, 0 skipped ==========
Any help would be greatly appreciated,
Thanks
Dave
What's on line 154? Mine is just the declaration
QThread* thread() const;
but that's 4.5.1 on Linux so it might be different. The first reference to anything involving the token type is on line 204 which is a variable of type Qt::ConnectionType.
BTW. I just tried compiling the following on my system ( in the file incqobj.cpp )
include <QOObject>
QObject myQOject;
with
g++ -I/usr/lib/qt4/include -I/usr/lib/qt4/include/QtCore -c incqobj.cpp
and it compiled fine so it should be as simple as that.
Edit: Since Jesse confirms that it works for him on Windows I'm tempted to say that you've got a non-Qt macro coming in and interfering. One thing you could do is a sanity check on what the compiler is actually seeing by getting VS to only produce the preprocessed source rather than do the compilation.
I haven't used VS in years but I think the option is \E maybe?
[Edit: see the 2nd comment by Jesse, it should be /E] It may also be an explicit option now in the compiler properties which can be set for that source file. Can't remember where it puts the output either so you may need to hunt around for it a bit! If you get that going though you can check to see if the code looks right at the part that would correspond to line 154 in the original QObject header.
Thanks for all the help, solution: I had to include the Qt headers before all my other includes, and it now compiles.
Thanks again!
Try including QThread?
#include <QThread>
Qt uses forward declaration extensively and sometimes you need to include extra headers.
EDIT:
Do you set any defines? Here is what I have for my 2003 Qt commercial (4.3.4) project (executable that links to Qt dlls):
QT_LARGEFILE_SUPPORT
QT_DLL
QT_GUI_LIB
QT_CORE_LIB
QT_THREAD_SUPPORT
QT_NETWORK_LIB