Component Showcase Demo App
import QtQuick 2.1
Rectangle {
id: root
anchors.fill: parent
color: "transparent"
property alias value: slider.value
property alias lineWidth: line.width
property alias gripSize: slider.gripSize
Rectangle {
id: line
anchors { top: slider.top; bottom: slider2.bottom }
x: parent.value * parent.width - (width / 2)
width: dp(2)
color: "#14aaff"
}
Curtain {
id: slider
increment: 0.0
anchors {
top: parent.top
topMargin: (gripSize / 4)
left: parent.left
right: parent.right
}
onValueChanged: slider2.value = slider.value
}
Curtain {
id: slider2
increment: 0.0
anchors {
bottom: parent.bottom
bottomMargin: slider.anchors.topMargin
left: parent.left
right: parent.right
}
gripSize: slider.gripSize
imageSource: "../../../assets/qmlvideofx/Triangle_bottom.png"