Details
-
Bug
-
Resolution: Duplicate
-
P2: Important
-
None
-
6.3.0 Beta2
-
None
Description
This example yields an error message for the customized button (and other controls).
The macOS style implementation makes assumptions about the object used as a background which are probably never met with customized controls.
qrc:/qt-project.org/imports/QtQuick/Controls/macOS/Button.qml:47: TypeError: Property 'styleFont' of object QQuickRectangle(0x7fac25a172b0) is not a function
import QtQuick import QtQuick.Controls Window { width: 640 height: 480 visible: true title: qsTr("Hello World") Button { text: "Click Me!" background: Rectangle { color: "#aa00ff00" } } }
Attachments
Issue Links
- relates to
-
QTBUG-96733 Prevent users from customising native styles
- Reported