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

[REG: 6.9.1 -> 6.9.2][Android] Black screen when returning to app

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Not Evaluated Not Evaluated
    • None
    • 6.9.2
    • None
    • Android 13, Android 14, Android 15
    • Android

      Steps to reproduce:

      1. Launch any Qt 6.9.2 app (e.g. blank Qt Quick app created by Qt Creator).
      2. Press Android Home button (app goes to background).
      3. 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();
              }
          } 

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

            qtandroidteam Qt Android Team
            alervd Alexander Dyagilev
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes