Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Wake up from sleep event (?)
kegon last edited by
I'm looking for some way to detect that the computer has been woken after sleeping.
My problem is that my application estimates the time remaining to complete long tasks. When a laptop goes to sleep, the time elapsed will be wrong because it will include time spent sleeping.
MuldeR last edited by
Correct me, if I'm wrong, but I don't think Qt has an even/signal for this.
You'd have to implement it yourself, using the "native" API of the underlying operating system.
On Windows, you would have to wait for a WM_POWERBROADCAST message: