Detecting if QSlider is being interacted with
-
I have a QSlider widget which works exactly as expected. But I have an issue with my Undo system. As I slide the slider, every change is sent to my undo system. This isn't what I want. I want the undo to be recorded after the user releases the slider.
Is there a way to query the drag state of the slider? I tried putting a mouse query in the class, but it didn't send me any messages to process.
-
Hi,
valueChanged depends on the current tracking state. By default it's on so the signal is emitted each time the value changes. You can set it to false and then it will be emitted only when the user releases the slider.
Hope it helps