QSlider - How to change tick color?
-
Hi,
I'm looking for a way to change tick colors for a QSlider which uses TicksBothSides.
Can anyone tell me how to do this (hopefully without having to reimplement the paintEvent()).Best,
asc -
stylesheet is the only option. You can look at "link":http://qt-project.org/doc/qt-4.8/stylesheet-examples.html#customizing-qslider for customizing slider
-
I've already been trying style sheets based on just that link but I cannot find any value that influences the tick color...
-
it's currently not possible to style the ticks with stylesheet!
The implementation is just missing (see QStyleSheetStyle::drawComplexControl() implementation).Edit:
Also see "this ":https://bugreports.qt-project.org/browse/QTBUG-3564 and "this ":https://bugreports.qt-project.org/browse/QTBUG-3304 bug-report.