Lykurg
5th November 2006, 12:33
Hi,
in my application-wide css i define
* {color: #333333;}
QPushButton[enabled="false"] {color: FF0000;}
This works in my "normal" Application. But if i start a normal QDialog-Subclass via
dgl_xyz dgl( this, Qt::Dialog );
dgl.setAttribute( Qt::WA_ShowModal );
if ( dgl.exec() == QDialog::Accepted )
{
//...
} the fonts color is #333333, but the font of the disabled QPushButtons are also gray instead of red.
What's wrong?
Thanks,
Lykurg
in my application-wide css i define
* {color: #333333;}
QPushButton[enabled="false"] {color: FF0000;}
This works in my "normal" Application. But if i start a normal QDialog-Subclass via
dgl_xyz dgl( this, Qt::Dialog );
dgl.setAttribute( Qt::WA_ShowModal );
if ( dgl.exec() == QDialog::Accepted )
{
//...
} the fonts color is #333333, but the font of the disabled QPushButtons are also gray instead of red.
What's wrong?
Thanks,
Lykurg