Hi,
How to get notified after after a thread enters eventLoop(i.e entering exec() fn.)
Hi,
How to get notified after after a thread enters eventLoop(i.e entering exec() fn.)
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).
babu198649 (23rd July 2010)
Bookmarks