I want to partially change the style of a control without affecting it's rendering otherwise. Let's take a button as an example and create a MyButton.qml containing:
Button {
id: mybutton
style: ButtonStyle {
label: Text {
renderType: Text.NativeRendering
font.family: "Helvetica"
font.pointSize: 20
text: control.text
}
}
}
Expected: a system theme colored button with an ugly font in it. Got: default-styled button ignoring the system palette (while the rest of the application is themed fine)
Why does the overriding style ignore the system palette? What is the right way to do it?