-
Bug
-
Resolution: Duplicate
-
Not Evaluated
-
None
-
6.9.2
-
None
-
Android 13, Android 14, Android 15
Steps to reproduce:
- Launch any Qt 6.9.2 app (e.g. blank Qt Quick app created by Qt Creator).
- Press Android Home button (app goes to background).
- Return to the app either by using Recents button or by launching app from Launcher. Result: UI is not showing. A black screen is showing instead. It's required to tap on screen for the UI to appear or repeat the third step again.
Qt 6.9.1 does NOT have this issue.
Any workaround?
Addition #1. I've found a workaround (is there a better one?). Just add this QML code to the main window:
Item {
id: appWindowInvalidateItem
}
Timer {
id: appWindowInvalidateTimer
interval: 50
onTriggered: {
++appWindowInvalidateItem.width;
--appWindowInvalidateItem.width;
}
}
Connections {
target: Qt.application
onStateChanged: {
if (Qt.application.state == Qt.ApplicationActive)
appWindowInvalidateTimer.restart();
}
}
- duplicates
-
QTBUG-139606 [regression] App window blank when switching from background to foreground
-
- Closed
-
- resulted from
-
QTBUG-127705 Android splashscreen not removed
-
- Open
-