From b0f1f03eaee7a716d2966a206fc33d1dcce49c8e Mon Sep 17 00:00:00 2001 From: Matias Linares Date: Tue, 5 Jul 2022 17:37:50 -0300 Subject: Add seek from the slider posible --- main.qml | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'main.qml') diff --git a/main.qml b/main.qml index 12a0f3d..c7b8a33 100644 --- a/main.qml +++ b/main.qml @@ -87,6 +87,10 @@ ApplicationWindow { to: 1 value: 0 Layout.fillWidth: true + onMoved: { + var position = audioInterface.duration*slider.value + audioInterface.seek(position) + } } Text { id: currentPositionText -- cgit v1.2.3-70-g09d2