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
2.1m questions
2.1m answers
60 comments
57.0k users