Divider.qml Example File
multimedia/video/qmlvideofx/qml/qmlvideofx/Divider.qml
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: parent.top; bottom: parent.bottom }
x: parent.value * parent.width - (width / 2)
width: 4
color: "#14aaff"
}
Curtain {
id: slider
increment: 0.0
anchors {
top: parent.top
topMargin: (gripSize / 2) + 5
left: parent.left
right: parent.right
}
onValueChanged: slider2.value = slider.value
}
Curtain {
id: slider2
increment: 0.0
anchors {
bottom: parent.bottom
bottomMargin: (gripSize / 2) + 5
left: parent.left
right: parent.right
}
imageSource: "qrc:/images/Triangle_bottom.png"
onValueChanged: slider.value = slider2.value
}
}