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

REG: QML Window Background Issue on Windows After Minimizing and Restoring in Qt 6.5+

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P1: Critical
    • None
    • 6.5.3, 6.6.3, 6.7.2
    • QPA: Windows, Quick: Other
    • None
    • Windows10
    • Windows

    Description

      The following QML code, when run on Windows, exhibits an issue: after clicking the minimize button and then restoring the window from the taskbar, the window's title text remains in the background and cannot be removed.

      import QtQuick
      import QtQuick.Window
      import QtQuick.Controls
      
      Window {
          visible: true
          width: 800
          height: 600
          flags: Qt.FramelessWindowHint | Qt.Window
          color: "transparent"    
          
          Rectangle {
              anchors.fill: parent
              anchors.margins: 20
              color: "black"        
              
              Button {
                  text: "minimize"
                  anchors.centerIn: parent            
                  onClicked: {
                      Window.window.showMinimized()
                  }
              }
          }
      } 

      I have tested with different versions of Qt and found that the issue occurs in versions 6.5 and later. In versions prior to 6.5, the behavior is normal.

      Attachments

        Issue Links

          For Gerrit Dashboard: QTBUG-127116
          # Subject Branch Project Status CR V

          Activity

            People

              morteza.jamshidi Morteza Jamshidi
              chen_bin Chen Bin
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There is 1 open Gerrit change