[SOLVED] How to check if computer is not used for some time.
The process is running all the time on a background and when computer is not used for certain amount of time it needs to do some.
First i thought to check mouse position if changed from the last time. But it records the position only if the widget is shown. I don`t want to show widget.
Now i think maybe there is a way to check screen saver state…
Any ideas?
Thank you!
8 replies
Afaik this cannot be done by Qt directly. You will need to go in the OS API.
On windows you can use GetSystemTimes [msdn.microsoft.com]
Here is example code [eggheadcafe.com] on how to use getsystemtimes.
You must log in to post a reply. Not a member yet? Register here!



