OS state (sleep or awake) in c++ Qt5.15.8
Unsolved
General and Desktop
-
Hi and welcome to devnet,
No there is not. You need to listen to the corresponding native events using a native event filter and act accordingly.
-
If you are on Windows and need this for Windows only, have a look here:
As @SGaist said, there is no platform independent "Qt way". You have to do this for every OS separately, if you are planning to go multi-platform