Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Turn off display in Windows



  • I'm looking to a way to turn off the display in Windows through my application in the same way Windows can through it's Power Options in Control Panel. I'm not looking for a screen saver but rather to kill the output so the monitor will idle.

    I'm using Qt v4.8.5 and would love any suggestions and/or example code that I can try and implement. Thank you!



  • welcome to devnet

    Your post is similar to a post of mine. AFAIK you still need platform specific code. This is not supported by Qt.



  • I've seen some posts talking about SystemParametersInfo and being able to control screensaver and power dimming features, however I haven't found really any good example code of this.



  • Sorry, forgot to give you "the link":http://qt-project.org/forums/viewthread/5960/ to my earlier post. As far as I know, you have to dig through the description of the API on MSDN


Log in to reply