My dialog has a vertical slider and I'd like to add some text labels for the tick marks. If the slider has six values, I can make six labels and use a grid layout. The labels will be close enough, but not exactly lined up. If I change the slider to four values and make four labels with a grid layout, the labels are not lined up. I didn't see any properties for tick labels on QSlider or QAbstractSlider.

Does anyone make labels for their sliders? How can I get my labels aligned with the tick marks? Thanks for your suggestions.
Joel