I'm unable to change the color of Qcheckbox in QT, can somebody help me with code to change color of check box text label. I have tried Qpalette.. And im using QT4.7.4 version..
Qcheckbox
Qpalette
You could use stylesheets.
e.g:
checkBox->setStyleSheet("QCheckBox { color: red }");
For more details check the style sheets in Qt Reference and the stylesheets documentation
1.4m articles
1.4m replys
5 comments
57.0k users