查看完整版本: [-- zhengtianzuo系列-Qml饼状图 --]

QTCN开发网 -> Qt代码秀 -> zhengtianzuo系列-Qml饼状图 [打印本页] 登录 -> 注册 -> 回复主题 -> 发表主题

zhengtianzuo 2017-12-16 13:31

zhengtianzuo系列-Qml饼状图

```
ChartView {
        anchors.fill: parent
        theme: ChartView.ChartThemeQt
        antialiasing: true
        legend.visible: false
        animationOptions: ChartView.AllAnimations

        PieSeries {
            id: pieSeries
            PieSlice {
                borderColor: "#AAAAAA"
                color: "#804040"
                label: qsTr("整形")
                labelVisible: true
                value: 66.6
            }
            PieSlice {
                borderColor: "#AAAAAA"
                color: "#408040"
                label: qsTr("字符串")
                labelVisible: true
                value: 30
            }
            PieSlice {
                borderColor: "#AAAAAA"
                color: "#404080"
                label: qsTr("文件")
                labelVisible: true
                value: 3.4
            }
        }
```



需要完整代码请访问 QtQuickExamples

big_mouse 2020-04-23 09:16


查看完整版本: [-- zhengtianzuo系列-Qml饼状图 --] [-- top --]



Powered by phpwind v8.7 Code ©2003-2011 phpwind
Gzip disabled