Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Moving direction of QSlider
basil_fawlty last edited by
Is there a possibility to find out if a QSlider is moving to the left or right? I have tried it with comparing the old and new value but somehow it isnt working.
Thanks in advance
Forgive last edited by
The way you're trying to check if it's moving to the left to right is something like if the new value of the slider is higher or smaller than the latest one.
leon.anavi last edited by
[quote author="basil_fawlty" date="1326588978"]I have tried it with comparing the old and new value but somehow it isnt working.[/quote]
You can get the value of the slider using "value()":http://developer.qt.nokia.com/doc/qt-4.8/qabstractslider.html#value-prop Please share your source code to see what are you doing wrong.
andre last edited by
Please show your code then, because comparing the value would be the most obvious solution.