QSlider show min, max and current value

Borrimoro picture Borrimoro · Aug 22, 2013 · Viewed 13k times · Source

Is it possible to show minimum, maximum and current selected value of QSlider? Of course I can use labels to display this, but I think there must be such possibility in QSlider

Answer

evilruff picture evilruff · Aug 22, 2013

You have two options..

1) as being mentioned in comments - sub - class

2) add as many QLabel's as you like with QSlider as a parent, install eventHandler() on QSlider to catch resize event to proper position them, and obviously handle scroll events, so you can update them... So labels will just float on top of QSlider