View Full Version : QSlider with a custom set of labels for the tick marks?
whitefurrows
4th August 2007, 00: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, 00: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, 15: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, 16:05
Well, I guess this makes it even harder.
Regards
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.