[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…
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]