Moving direction of QSlider
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
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.
[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.
Please show your code then, because comparing the value would be the most obvious solution.