【发布时间】:2014-11-20 14:14:53
【问题描述】:
我知道可以使用以下代码在 QML 中画一个圆:
Rectangle {
width: 150
height: 150
anchors.horizontalCenter: parent.horizontalCenter
anchors.top: parent.top
color: "#095e7b"
border.color: "#0a2f4a"
border.width: 2
radius: width*0.5
}
我的问题是:如果我需要画一个圆的扇区怎么办。 (Pizza Slices)并使这些切片中的每一个都可点击?我可以只使用 QML 吗?
【问题讨论】:
标签: qt qml draw geometry sector