View Full Version : Advanced use of Qt events
Raul
14th September 2010, 09:47
Hi
I want to know how to implement delayed method invocation and idle event processing?If someone can tell me?thanks!
aamer4yu
14th September 2010, 10:11
Store the events in a list...and when you are done with a condition, emit / resend those events.
stillwaiting
14th September 2010, 10:28
Hi
I want to know how to implement delayed method invocation and idle event processing?If someone can tell me?thanks!
AFAIK:
To make your application perform idle processing (i.e. executing a special function whenever there are no pending events), use a QTimer with 0 timeout. More sophisticated idle processing schemes can be achieved using processEvents(). (c) http://doc.qt.nokia.com/latest/qeventloop.html .
And you can use QTimer::singleShot for delayed method invocation.
wysota
14th September 2010, 15:36
Keeping the GUI Responsive
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.