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..
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With