PDA

View Full Version : How to find if QDial was rotated clockwise or anticlockwise



dpatel
21st November 2011, 07:12
Hi,

Is there any way by which I can detect if QDial (with wrapped property set to true) was rotated clockwise or anticlockwise?

Thanks,
dpatel

mvuori
21st November 2011, 17:20
I _think_ this way: Keep track of its value whenever you get sliderMoved() and see whether they go up or down. Unlike valueChanged(), you can track the movement, just remembering to check the possible jump from max to min value.