【发布时间】:2018-01-17 13:51:33
【问题描述】:
任何人都知道如何更改控件“RoundButton”的颜色,该控件从 2.1 开始就出现在 Qt Controls 中。
我尝试更改背景,但如果我将“矩形”放在项目上,RoundButton 就会变成矩形,我不知道该放什么。
RoundButton {
id: roundButton
x: 243
y: 244
width: 20
height: 20
text: "ah"
wheelEnabled: false
background: Rectangle {
color: "yellow"
height: 50
width: 50
}
}
【问题讨论】:
标签: qt qml qtquickcontrols2