Hi, with this code i correctly set bold-red text on checkbox but i have some problem to show it using gnome, i just get a bold-black text.
Any hint?
{
checkbox->setFont( font );
checkbox->setPalette(p);
checkbox->setText( message );
}
void setRichTextOnCheckBox ( QCheckBox * checkbox , QString message )
{
QFont font ("" , 9 , QFont::Bold );
checkbox->setFont( font );
QPalette p ( checkbox->palette() );
QColor c(Qt::red);
p.setColor(QPalette::WindowText,c);
checkbox->setPalette(p);
checkbox->setText( message );
}
To copy to clipboard, switch view to plain text mode
Bookmarks