Files
tactileipc3d/qml/content/LabeledSlider.qml

25 lines
498 B
QML

import QtQuick
import QtQuick.Controls
import TactileIPC 1.0
Slider {
property string lableText: Qt.binding(function() {
I18n.retranslateToken
return qsTr("Text")
})
stepSize: 1
Label {
text: parent.lableText
anchors.left: parent.left
anchors.bottom: parent.top
bottomPadding: -12
}
Label {
text: parent.value
anchors.right: parent.right
anchors.bottom: parent.top
bottomPadding: -12
}
}