How to create a circular progress bar in pure QML+JS?

后端 未结 6 573
自闭症患者
自闭症患者 2021-02-01 05:59

My application is made using QML+JS and I am looking to create a circular progress bar widget. I can create the circle using a QML Rectangle and settings its radius equal to its

6条回答
  •  我在风中等你
    2021-02-01 06:28

    Just use EEIoT (https://github.com/IndeemaSoftware/EEIoT) Knob component. Change parameters fromAngle: 0 and toAngle: Math.PI * 2. Also reverse: true if you need progress to be reversed

    Knob {
        id: knob
        x: 0
        y: 83
        width: 100
        height: 100
        from:0
        to: 100
        fromAngle: 0
        toAngle: Math.PI*2
        reverse: false
    }
    

提交回复
热议问题