Hi
I want to know how to implement delayed method invocation and idle event processing?If someone can tell me?thanks!
Printable View
Hi
I want to know how to implement delayed method invocation and idle event processing?If someone can tell me?thanks!
Store the events in a list...and when you are done with a condition, emit / resend those events.
AFAIK:
(c) http://doc.qt.nokia.com/latest/qeventloop.html .Quote:
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().
And you can use QTimer::singleShot for delayed method invocation.
[wiki]Keeping the GUI Responsive[/wiki]