Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-89477

Cross-platform wakelock API

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 6.0
    • QPA

      It would be useful to have a truly cross-platform API to acquire a wakelock. On mobile platforms, this would prevent the screen from turning off, on desktop platforms it could be used to inhibit screen-savers and standby.

      Implementation wise, this could map to setting FLAG_KEEP_SCREEN_ON on android/view/Window on Android and setting the idle timer to false on iOs. Linux features systemd inhibitor locks, which might be useful.

      Prior art in other toolkits:

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            vestbo Tor Arne Vestbø
            fabiankosmale Fabian Kosmale
            Veli-Pekka Heinonen Veli-Pekka Heinonen
            Votes:
            2 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes