GUI crash when running in two threads
-
https://forum.qt.io/topic/13215/solved-qthread-output-in-qtextedit-without-emitors/2
but could not undertsand
I have two threads and One in Tcl Main thread where I enter command in QTextEdit and the command processing is done in other thread
Now after command processing I get command output
I am not sure in which thread
QObject::connect: Cannot queue arguments of type 'QTextCursor'
(Make sure 'QTextCursor' is registered using qRegisterMetaType().)Object::connect: Cannot queue arguments of type 'QTextCursor'
(Make sure 'QTextCursor' is registered using qRegisterMetaType().)I
-
Hi,
Why are you trying to send a QTextCursor to the other thread ?
-
it is mistake but how to solve it I do not
-
@Qt-Enthusiast There is a simple rule: do not access any GUI from other threads (only from GUI thread).
What do you mean by "it is mistake"? What do you actually want to do? What data do you want to pass to the other thread? -
Can we discuss on chat in details