I have a thread created by inheriting QThread
in which I called exec()
to initiate the event loop. And this class that inherits QThread
has a method in it.
How can I call that method from the main thread for it to execute in the child thread?
I assume that the execution of that method has to be queued in the child thread's event loop, so calling threadObject->childThreadMethod()
won't be a good idea.
Is there any solution to this?