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

Regression: buttons invisible when using non-sized custom backgrounds

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 6.2.1, 6.3.0 Alpha
    • 6.1.2
    • Quick: Controls 2
    • None
    • macOS 11.5
      Ubuntu 20.04
    • Linux/X11, macOS, Windows
    • 9738d49b65b63da2a26035ad250f48fac182dfad (qt/qtdeclarative/dev) 5c246264d9d61307cf4e2004457923198c5bb7bd (qt/qtdeclarative/6.2)

    Description

      This code works (shows the button) in Qt 5.15.2:

      import QtQuick 2.15
      import QtQuick.Controls 2.15
      import QtQuick.Window 2.15
      
      Window {
          width: 640
          height: 480
          visible: true
      
          Button {
              anchors.centerIn: parent
              text: 'Button'
      
              background: Rectangle { color: 'red'  }
          }
      }
      

      This code shows no button in Qt 6.1.2:

      import QtQuick
      import QtQuick.Controls
      import QtQuick.Window
      
      Window {
          width: 640
          height: 480
          visible: true
      
          Button {
              anchors.centerIn: parent
              text: 'Button'
      
              background: Rectangle { color: 'red'  }
          }
      }
      

      Attachments

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

        Activity

          People

            richard Richard Moe Gustavsen
            ddobrev Dimitar Dobrev
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: