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

No alt-tab thumbnail is shown if window is made visible via showMinimized()

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 6.6.0
    • QPA: Windows
    • None
    • Windows 11
    • Windows

    Description

      Doing alt-tab on Windows shows a thumbnail of the application's window.
      It appears in the Windows taskbar as well.

      But if the application is made visible directly with QWindow::showMinimized(), then no thumbnail is rendered.

      Qt stops rendering when the window is minimized, which makes sense, but it would be useful to render at least the 1st frame, just so the thumbnail becomes more readable than an empty placeholder rectangle.

      Example repro, run with: qml main.qml

      import QtQuick 2.9
      import QtQuick.Controls 2.15
      
      ApplicationWindow {
          visible: true
          width: 500
          height: 500
      
          Rectangle {
              id: root
      
              color: "blue"
              property int counter: 0
              anchors.fill: parent
              Text {
                  color: "white"
                  text: root.counter
                  font.pixelSize: 80
                  anchors.centerIn: parent
              }
      
              Timer {
                  interval: 1000
                  running: true
                  repeat: true
                  onTriggered: {
                      root.counter++;
                  }
              }
          }
      
          Component.onCompleted: {
              showMinimized();
          }
      }
      
      

      Attachments

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

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            iamsergio Sergio Martins
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes