Details
-
Suggestion
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
6.0
Description
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:
Attachments
Issue Links
- is duplicated by
-
QTBUG-54493 Be able to set the wake lock settings (aka idleTimer)
-
- Closed
-
- relates to
-
QTBUG-49780 Android OS goes to standby even if there is some Qt activity
-
- Reported
-
-
QTBUG-49853 Unable to call PowerManager.WakeLock.newWakeLock using QAndroidJniObject
-
- Closed
-