Hi,
I used the following example to customise my widget through a style sheet: http://qt-project.org/wiki/Qt_Style_Sheets_and_Custom_Painting_Example
What is the best way to access the correct colour for the current state. For example I have
MyWidget {
qproperty-objectColor: yellow;
}
MyWidget::disabled {
qproperty-objectColor: green;
}
and my paint method should get the colour depending on the state.
Thanks,
Markus
↧