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

Error when Button has a custom background under macOS style

XMLWordPrintable

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

      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
      

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes