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

Error when Button has a custom background under macOS style

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • 6.5.6, 6.6.0
    • 6.2.1
    • Quick: Controls 2
    • None
    • macOS
    • d6352cd4a (dev), e3b58ccba (tqtc/lts-6.5)

    Description

      import QtQuick
      import QtQuick.Controls
      
      Button {
          text: 'Button'
          background: Rectangle {
              implicitWidth: 80
              implicitHeight: 24
              color: 'red'
          }
      }
      

      The error is

      qrc:/qt-project.org/imports/QtQuick/Controls/macOS/Button.qml:44: TypeError: Property 'styleFont' of object QQuickRectangle(0x7fc0c15b6d80) is not a function
      

      Attachments

        Issue Links

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

          Activity

            People

              richard Richard Moe Gustavsen
              xwang Xiaoqiang Wang
              Votes:
              7 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes