QML中如何控制默认RadioButton的大小?
How to control the size of the default RadioButton in QML?
如何以最简单的方式减少或控制 ColumnLayout
下面 RadioButton
的大小?
ColumnLayout{
RadioButton {
text: "Option1"
checked: true
}
RadioButton {
text: "Option2"
}
}
所有可用的示例引导我制作复杂样式的 RadioButton。我只想要默认的,然后简单地缩小尺寸。
我正在使用 Qt 5.12.5。
每一项都有 scale
属性.
ColumnLayout {
scale: 0.75
RadioButton {
text: "Option1"
checked: true
scale: 0.75
}
RadioButton {
text: "Option2"
}
}
如何以最简单的方式减少或控制 ColumnLayout
下面 RadioButton
的大小?
ColumnLayout{
RadioButton {
text: "Option1"
checked: true
}
RadioButton {
text: "Option2"
}
}
所有可用的示例引导我制作复杂样式的 RadioButton。我只想要默认的,然后简单地缩小尺寸。
我正在使用 Qt 5.12.5。
每一项都有 scale
属性.
ColumnLayout {
scale: 0.75
RadioButton {
text: "Option1"
checked: true
scale: 0.75
}
RadioButton {
text: "Option2"
}
}