Wake up from sleep event (?)
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.
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: