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

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Done
    • Affects Version/s: 5.9.4
    • Fix Version/s: 5.9.5
    • Component/s: Quick: Controls 2
    • Labels:
      None
    • Environment:
      * Windows 10 64bit
       * Qt 5.9.4 MSVC 2015 32 bit
    • Commits:
      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

              • Assignee:
                qt.team.quick.subscriptions Qt Quick and Widgets Team
                Reporter:
                kuzulis Denis Shienkov
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes