I am looking for a way to disable a part of a QSlider
, and I mean disable it such that when you drag it it doesn't allow you to go passed a certain value. I know this effect is usually enforced with setMinumum()
and setMaximum()
, but for UI reasons I want to set the range larger than the actual possible values set by the user.
In other words, I have a set of sliders, which range is normalized [-2,2]. However I want to enforce one of this sliders only to be [-1,1], but for a better visualization I want such slider to have the same physical size as the others, but only let the user move between [-1,1]
Is there such a possibility?