Details
-
Suggestion
-
Resolution: Unresolved
-
P3: Somewhat important
-
5.1.1
-
None
Description
Button controls could have a font property (e.g. TextField) or a font property exposed in the ButtonStyle.
Currently, there is no possible way to change the font or the size of the text of the Button control.
TextField { width: applicationWindow.width / 2 text: qsTr("Lorem ipsum dolor sit amet.") font { family: "Helvetica" pointSize: 32 bold: false } } Button { text: qsTr("Lorem ipsum dolor sit amet.") style: ButtonStyle { background: Rectangle { implicitWidth: 100 implicitHeight: 25 border.width: control.activeFocus ? 2 : 1 border.color: "#888" radius: 4 gradient: Gradient { GradientStop { position: 0 ; color: control.pressed ? "#ccc" : "#eee" } GradientStop { position: 1 ; color: control.pressed ? "#aaa" : "#ccc" } } } } }