View Full Version : QSlider with a custom set of labels for the tick marks?
whitefurrows
4th August 2007, 01:22
Hello,
does anyone know how can display a custom set of labels for the different ticks?
I would not like to use qwt!
Thanks
marcel
4th August 2007, 01:32
You can subclass QSlider and draw the tickmark labels yourself in its paintEvent.
I don't think there is another way, besides creating a style for your slider.
You could copy the relevant code from Qwt. They must be doing the same thing.
Regards
Uwe
5th August 2007, 16:52
QwtSlider is much older than QSlider. (The first release of Qwt was developed for Qt 1.1). So it completely unrelated to QSlider.
Uwe
marcel
5th August 2007, 17:05
Well, I guess this makes it even harder.
Regards
vBulletin® v3.7.1, Copyright ©2000-2008, Jelsoft Enterprises Ltd.