Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Turn off display in Windows
Forum Updated to NodeBB v4.3 + New Features

Turn off display in Windows

Scheduled Pinned Locked Moved General and Desktop
4 Posts 2 Posters 2.8k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    kevandju
    wrote on last edited by
    #1

    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!

    1 Reply Last reply
    0
    • K Offline
      K Offline
      koahnig
      wrote on last edited by
      #2

      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.

      Vote the answer(s) that helped you to solve your issue(s)

      1 Reply Last reply
      0
      • K Offline
        K Offline
        kevandju
        wrote on last edited by
        #3

        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.

        1 Reply Last reply
        0
        • K Offline
          K Offline
          koahnig
          wrote on last edited by
          #4

          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

          Vote the answer(s) that helped you to solve your issue(s)

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved