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

Button is not visible if its background property is set as a Rectangle

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • 5.9.5
    • 5.9.4
    • Quick: Controls 2
    • None
    • * Windows 10 64bit
       * Qt 5.9.4 MSVC 2015 32 bit
    • aca950e43a25f4b80707ff4e2f17d71aef441d52

    Description

      After upgrading from Qt 5.9.3 to Qt 5.9.4 the Button becomes invisible at all if to set a background with borders:

      import QtQuick 2.9
      import QtQuick.Window 2.2
      import QtQuick.Controls 2.2
      
      Window {
          visible: true
          width: 640
          height: 480
          title: qsTr("Hello World")
      
          Button {
              id: control
              width: 50; height: 50
              background: Rectangle {
                  color: "green"
                  border.color: "black"
                  border.width: 2
                  radius: 5
              }
          }
      }
      

       

       

      Attachments

        Issue Links

          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
              kuzulis Denis Shienkov
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes