I am new to QML and I want to personalize my buttons. I managed to change the background color and border color. But I am unable to change the color of the button text at all. I saw that we no longer use “style” to change the style, but “background”, and I don’t understand everything about it.
Thank you for your help.
Button { id: buttonAC text: qsTr("AC") Layout.fillHeight: true Layout.fillWidth: true background: Rectangle { border.color: "#14191D" color: "#24292f" // I want to change text color next } /*Text { text: qsTr("AC") color: "#F54035" }*/ }
source share