Quantcast
Channel: Jobs
Viewing all articles
Browse latest Browse all 18427

[SOLVED] Custom Widget with custom stylesheet

$
0
0
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

Viewing all articles
Browse latest Browse all 18427

Trending Articles