property real value : 0
property real startAngle:0
property real endAngle:300
- property maxValue:100
- property url gaugeBackground:"joybox.png"
- property url gaugeForeground:"joybox.png"
+ property real maxValue:100
+ property url gaugeBackground:""
+ property url gaugeForeground:""
property url gaugeNeedle:"needle1.png"
property url bezel:""
Image {
anchors.fill:parent
+ anchors.margins: 8
source: gaugeBackground
}
rotation: startAngle+root.value*0.36
smooth: true
source: gaugeNeedle
-
+ }
Image {
anchors.fill:parent
source: gaugeForeground
}
-
+ Image {
+ id:bezelImg
+ anchors.fill:parent
+ source: bezel
+ }
}