Details
-
Suggestion
-
Resolution: Out of scope
-
P3: Somewhat important
-
4.3.1
-
None
Description
It seems impossible to query for tick mark positions in a way that will work with all styles. You can get an approximation using some pixelMetrics and QStyle::sliderPositionFromValue() but it won't be perfect in all styles. This should be exposed somehow.
It's a rather common thing to want to line some text up with the tick marks (maybe adding support for labels on the slider would do the job)
There's also a request for assigning labels to the tick positions.
Resolution: Tick marks are style dependent, and the style is even free to disable them completely. If you want to add text to the ticks, it sounds like you should be styling the slider - e.g., writing a proxy style that changes the appearance for QStyle::CC_Slider only.
Update: This has been reopened as a suggestion for QSlider, with extra information added.