import QtQuick import QtQuick.Controls as QtC import QtQuick.Layouts Window { id: root width: 640 height: 480 visible: true title: qsTr("Hello World") property real number: 0 Text { anchors.centerIn: parent text: "Animated number value: " + root.number font.pixelSize: 20 } AnimationController { id: animationController animation: SequentialAnimation { PauseAnimation { duration: 2000 } NumberAnimation { target: root property: "number" from: 0 to: 2000 duration: 0 } PauseAnimation { duration: 2000 } } } RowLayout { anchors.bottom: parent.bottom QtC.Slider { id: slider from: 0 to: 6000 value: 0 onValueChanged: animationController.progress = this.value / 6000 } QtC.Label { text: slider.value } } }