January 15, 2012

basil_fawlty basil_fawlty
Lab Rat
35 posts

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

3 replies

January 15, 2012

Forgive Forgive
Lab Rat
40 posts

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.

January 15, 2012

leon.anavi leon.anavi
Mad Scientist
1045 posts
basil_fawlty wrote:
I have tried it with comparing the old and new value but somehow it isnt working.

You can get the value of the slider using value() [developer.qt.nokia.com] Please share your source code to see what are you doing wrong.

 Signature 

http://anavi.org/

January 15, 2012

Andre Andre
Area 51 Engineer
6031 posts

Please show your code then, because comparing the value would be the most obvious solution.

 Signature 

Looking for Qt developers to join our team @ i-Optics: https://qt-project.org/forums/viewthread/25393/

 
  ‹‹ How can i set fixed height of layout?      Draw a GIF in an OpenGL Widget ››

You must log in to post a reply. Not a member yet? Register here!