Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Special Interest Groups
  3. C++ Gurus
  4. [SOLVED] Detect if system goes to sleep or hibrante mode ?
Forum Updated to NodeBB v4.3 + New Features

[SOLVED] Detect if system goes to sleep or hibrante mode ?

Scheduled Pinned Locked Moved C++ Gurus
5 Posts 3 Posters 2.0k 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.
  • V Offline
    V Offline
    vpwal
    wrote on last edited by
    #1

    i want to do the following on windows.

    if system goes to sleep or hibrante mode then make a text file

    Is there any Qt specific api ?
    if no.what are other solutions?

    Thanks in advance.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      AFAIK, not currently.

      You'll have to use Window's APIs for that

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • IamSumitI Offline
        IamSumitI Offline
        IamSumit
        wrote on last edited by
        #3

        Hi.

        SGaist is right there is no Qt specific API.

        use WM_POWERBROADCAST a window specific message.

        Find out it on MSDN.

        Have a nice day.

        Be Cute

        1 Reply Last reply
        0
        • V Offline
          V Offline
          vpwal
          wrote on last edited by
          #4

          Hello Sumit.

          Many -2 thanks.it looks promising.

          I successfully did.

          1 Reply Last reply
          0
          • IamSumitI Offline
            IamSumitI Offline
            IamSumit
            wrote on last edited by
            #5

            yeah all right.

            Please edit thread title as {SOLVED}
            Thanks.

            Be Cute

            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