diff options
Diffstat (limited to 'examples/declarative/dial/dial.qml')
-rw-r--r-- | examples/declarative/dial/dial.qml | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/examples/declarative/dial/dial.qml b/examples/declarative/dial/dial.qml new file mode 100644 index 0000000..ce43b01 --- /dev/null +++ b/examples/declarative/dial/dial.qml @@ -0,0 +1,14 @@ +<?qtfx namespacepath:=DialLibrary ?> +<Rect color="white" width="210" height="240"> + <!-- Dial with a slider to adjust it --> + <Dial id="Dial" value="{Slider.x-2}"/> + <Rect anchors.top="{Dial.bottom}" x="20" width="160" height="16" color="steelblue" gradientColor="lightsteelblue" radius="8" opacity="0.7"> + <Rect id="Slider" anchors.top="{Dial.bottom}" x="2" y="2" width="30" height="12" color="lightgray" gradientColor="gray" radius="6"> + <MouseRegion anchors.fill="{parent}" + drag.target="{parent}" + drag.axis="x" + drag.xmin="2" + drag.xmax="128"/> + </Rect> + </Rect> +</Rect> |