I have implemented the interface where the user is drawing a frame and then moving to next frame which will increment the slider value by 1. User can also increment or decrement the slider value. But, if user has drawn only upto frame 20 then user should not be able to drag slider beyond 20. How can I ensure that?
Is there a way to prevent Qt slider dragging beyond a value?
2.4k views Asked by pixelite At
1
Use this class and just set
setRestrictValue()
that is the minimum value that user can drag the sliderslider.h
slider.cpp
example: