Qt 6.11 is out! See what's new in the release
blog
Moving direction of QSlider
General and Desktop
4
Posts
4
Posters
3.2k
Views
1
Watching
-
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.