[Qt-interest] Capture mouse Event
Ankit Agarwal
ankit17.ag at gmail.com
Thu Jan 29 10:56:27 CET 2009
Hi,
I have my GUI made in Qt. The app has multiple views(pages).
Problem:
If the user is not performing any operation for a specified amount of time,
say 10 min, then i need to exit the application. How can i achive this?
One way of doing this is reimplement mouseMoveEvent() for every view I have,
and then maintain a timer. every time the user moves the mouse, the timer
resets. If the timer expires, then the application exits.
Is there a bteer way to implement the same.
--
Regards,
Ankit Agarwal
SW Engineer
Vegayan Systems
email : ankit_agarwal at vegayan.com
Blog : http://ankit17.wordpress.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090129/ed567aa1/attachment.html
More information about the Qt-interest-old
mailing list