import QtQuick import QtQuick.Controls ApplicationWindow { id: window visible: true width: 1280 height: 720 title: qsTr("test button") Button { id: control text: qsTr("I am ready!") palette { button: "red" buttonText: "red" dark: "red" mid: "red" highlight: "red" } background: Rectangle { implicitWidth: 100 implicitHeight: 40 visible: !control.flat || control.down || control.checked || control.highlighted color: Color.blend(control.checked || control.highlighted ? control.palette.dark : control.palette.button, control.palette.mid, control.down ? 0.5 : 0.0) border.color: control.palette.highlight border.width: control.visualFocus ? 2 : 0 } } }