How to detect system idle time in Qt ?
-
I want to get system idle time. In electron I used to get the system idle time using the function
powerMonitor.getSystemIdleState()
https://www.electronjs.org/docs/latest/api/power-monitor
How can I have this similar implementation in Qt ?
-
I want to get system idle time. In electron I used to get the system idle time using the function
powerMonitor.getSystemIdleState()
https://www.electronjs.org/docs/latest/api/power-monitor
How can I have this similar implementation in Qt ?
@animeshdhakal As far as I know there is nothing for this in Qt. But you could use Electron also in a Qt application I guess (I have no idea about Electron)?
-
So Is there any way to detect User Input for a period of time ?
-
So Is there any way to detect User Input for a period of time ?
@animeshdhakal User input where? In your app or system-wide? System-wide is not possible with Qt. For your app you can do that with https://doc.qt.io/qt-6/eventsandfilters.html