I have created a slider for a mediaplayer application in QML. The value property of the slider is updated by a thread in the background. My issue is that when the slider is dragged to do a seek,even though a seek action has been done and new value for the slider is updated by dragging, when the mouse is released, the handle jumps to its previous position before coming to the new position. I created the slider using the code below
Slider {
id: sliderHorizontal
x: 145
y: 478
visible: false
activeFocusOnPress:true
maximumValue: 100.0
minimumValue: 0.0
updateValueWhileDragging :true
value: Media.SliderValue
onValueChanged: {
//seek to the new value calling a c++ function
}
}
Can anyone guess why the slider is going back even though the background thread that updates the value is also updating to a new position ?