Re: QThread slots not executed in created thread context?
Originally Posted by bobrien
The result of running this code is a completely functional application, except that when examining the process ID's of the various functions/slots being called, I can see that (in particular) the slot handlyMySignal() is being executed in the same thread as both the WindowApp constructor and other (not shown here) slots in MyObject.
That's correct, as you moved only "myObject" to the new thread and not "otherObject". You should move "otherObject" to the new thread if you want its slots to be executed in context of this thread. "myObject" doesn't have to be moved in this case.
Your biological and technological distinctiveness will be added to our own. Resistance is futile.
Please ask Qt related questions on the forum and not using private messages or visitor messages.
Bookmarks