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

    • Windows
    • ee942d7ab (dev), e7c6f761a (dev), 4ffab9a89 (6.10)

      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.

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

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

              Created:
              Updated:
              Resolved: