View Full Version : QThread, emitting signal after entering in to the event loop.
babu198649
22nd July 2010, 08:48
Hi,
How to get notified after after a thread enters eventLoop(i.e entering exec() fn.)
wysota
22nd July 2010, 10: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).
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.