QSlider set tick interval customized
Unsolved
General and Desktop
-
I have created a QSlider but I can't figure out how to change the tick interval to have two intervals in one QSlider. I would like the QSlider to be divided into three ticks but the range from 0 to the first tick is 50% out of the maximum value of the QSlider, from the first tick to the send tick would be 10%, and from the last tick to the end would be 40%. However, you can only do the tick interval evenly. Is there any way to customize it?
-
Hi,
The most simple would probably be to subclass QAbstractSlider to customize the slider to your needs.
Hope it helps
-
Because that's something you have to implemented and handle yourself.