can some one help me solve this error
-
The error message tells you what you can do to solve the error: Make sure 'QTextCharFormat' is registered using qRegisterMetaType()
If you're using Queued Connections you have to make sure all types are registered with qRegisterMetaType. -
I am utry to call Tcl_eval an it is different thread
-
@Qt-Enthusiast
Hi
try to register QTextCursor and QTextCharFormat
with qRegisterMetaType
qRegisterMetaType<QTextCursor >("QTextCursor ");
qRegisterMetaType<QTextCharFormat>("QTextCharFormat");BEFORE you try to use it.
so like in main.cpp -
I did
I am still getting the error
i did
Q_DECLARE_METATYPE(QTextCursor)
Q_DECLARE_METATYPE(QTextFormat)I am still getting the error
-
@Qt-Enthusiast
and you did use
qRegisterMetaType
too ? -
No I did not use that
-
@Qt-Enthusiast
But that is the one you must use.
Q_DECLARE_METATYPE is not the same. -
@Qt-Enthusiast said in can some one help me solve this error:
No I did not use that
And then you wonder why it does not work... really strange. The error message exactly tells you what to do and you're ignoring it even two people telling you to do so...
-
after that also it is crashing
-
@Qt-Enthusiast said in can some one help me solve this error:
after that also it is crashing
Well, then use the debugger, check the stack trace, ...