change disabled background color QCheckbox?
Solved
General and Desktop
-
Hi
Is it possible to change the standard gray-ish background color of a
QCheckBox::setEnabled(0)?
I tried to set the background via:
QCheckbox::setStyleSheet("QCheckBox::indicator {background-color:red;}");
but that fills the whole checkbox with that color including the border and the checkmark itself.
-
Hi
Is it possible to change the standard gray-ish background color of a
QCheckBox::setEnabled(0)?
I tried to set the background via:
QCheckbox::setStyleSheet("QCheckBox::indicator {background-color:red;}");
but that fills the whole checkbox with that color including the border and the checkmark itself.
-
Thanks, with
QCheckBox:disabled {background-color:red;}
I get this:
and withQCheckBox:disabled {color:green;background-color:red;}
this:
still weird looking but I can live with that...
Thank you.