PDA

View Full Version : Detect application idle



chris_helloworld
14th April 2011, 13:00
Hi,
Is there a way to detect when a GUI application has been idle, (ie, no user interaction), for a period of time ?

Cheers,
Chris.

_Stefan
14th April 2011, 17:49
I guess you could use a QTimer, that you check for elapsed time and reset it whenever the application receives a mouse or key event?