-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
5.15.1, 5.15.2, 5.15.8
ItemDelegate has default font option different from RadioDelegate, SwitchDelegate and SwipeDelegate. This does not have much sense, since the visual result is like in attachment.
Code is the following, with Material style enabled with qtcontrols2.conf
Drawer {
id: drawer
width: root.width * 0.5
height: root.height
Column {
anchors.fill: parent
ItemDelegate {
text: qsTr("Item Delegate")
width: parent.width
Component.onCompleted: console.log(font)
}
RadioDelegate {
text: "Radio"
width: parent.width
Component.onCompleted: console.log(font)
}
SwitchDelegate {
width: parent.width
text: "Check"
checked: false
}
}
}
Output:
qml: QFont(Sans,-1,16,5,50,0,0,0,0,0)
qml: QFont(Sans,-1,14,5,57,0,0,0,0,0)