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. Prevent Sleep on OSX and stand by on Windows
Forum Updated to NodeBB v4.3 + New Features

Prevent Sleep on OSX and stand by on Windows

Scheduled Pinned Locked Moved General and Desktop
standysleep
2 Posts 2 Posters 1.6k Views 2 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.
  • M Offline
    M Offline
    mattewre
    wrote on 16 Jun 2015, 23:20 last edited by
    #1

    Hi,
    my application is made of a quite long process that doesn't require the user input.
    I'm facing the problem that the computer goes in sleep on OSX and on standby on Windows.
    Searching on the web it seems that QT doesn't include something to prevent this behavior. Do you confirm?
    Is there a workaround (even if it would consume a bit of resources)?
    Or do I have to use the native APIs by the OS like described here: http://stackoverflow.com/questions/5596319/how-to-programmatically-prevent-a-mac-from-going-to-sleep
    How can I use the I/O kit inside a QTproject?

    Thank you

    1 Reply Last reply
    0
    • S Offline
      S Offline
      sierdzio
      Moderators
      wrote on 17 Jun 2015, 09:23 last edited by
      #2

      Yes, you need to use native APIs to achieve that goal.

      (Z(:^

      1 Reply Last reply
      0

      1/2

      16 Jun 2015, 23:20

      • Login

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