There are comprehensive examples for style sheets of QWidgets
here. Unfortunately QDial
is missing from the examples.
Can I change the appearance (basically the color, border of the rotary knob) just by a stylesheet? In this article a new dial class is supporting style sheets, but can it not be done with Qt's standard class?
The slider / scrollbar examples show how every detail can be tweaked, so I wonder if there is something similar for QDial
? I understand I can exchange the underlying image, but would prefer an easy way just to set its color, border.
I have tried the standard attributes such as backgroud-color
, background
, color
with no success. Also tried QDial::handle
, so a hint would be useful.
QDial
does not support style sheets (here's an old bugreport bugreports.qt-project.org/browse/QTBUG-1160). Though it can be customized through a customQStyle
. Check howQDial
looks with a new Fusion style. – Unbent