Unsolved Slider in QML
-
Hi everyone,
Can some one help me to implement slider movement in QML
-
Hi @Sushma_MP
Have a look at
http://doc.qt.io/qt-5/qml-qtquick-controls-slider.html#details
You can have something like this, for example:
Slider { id: firstSlider maximumValue: 5.0 stepSize: 1.0 }
-
this is to create the slider but i need to implement this slider in music player , requirement is as soon as the song played the slider has to move and maximumValue should be the length of the selected song..
-
@Sushma_MP said in Slider in QML:
this is to create the slider but i need to implement this slider in music player , requirement is as soon as the song played the slider has to move and maximumValue should be the length of the selected song..
What about binding?
http://doc.qt.io/qt-5/qml-qtqml-binding.html#details
Slider { id: slider Binding { target: slider property: "value" value: yourPlayer.value//or something like this } }
-
Thank you let me try out this...