View Full Version : QThread, emitting signal after entering in to the event loop.

22nd July 2010, 07:48
How to get notified after after a thread enters eventLoop(i.e entering exec() fn.)

22nd July 2010, 09:16
Use QMetaObject::invokeMethod() with QueuedConnection to trigger a signal. It will be executed only when the event loop is active. Just bear in mind QThread object doesn't belong to the thread it represents so it can't be a signal of the QThread derived object but rather some other object that lives in the thread (of course you can then propagate the signal to the thread object).