Setting background color for QCheckBox::indicator resets all other styling
-
wrote on 19 Jun 2022, 15:25 last edited by
Hi, I want to change the background of my checkbox, i tried this :
QCheckBox::indicator{background-color:red;}
but then the checkbox do not work.
how can i change the background color without reset all other styling.
-
Hi, I want to change the background of my checkbox, i tried this :
QCheckBox::indicator{background-color:red;}
but then the checkbox do not work.
how can i change the background color without reset all other styling.
wrote on 19 Jun 2022, 15:29 last edited by@Mahjouba said in Setting background color for QCheckBox::indicator resets all other styling:
but then the checkbox do not work.
Hello and welcome.
In what way "checkbox do not work"?
without reset all other styling.
What other styling are you talking about?
-
wrote on 19 Jun 2022, 15:36 last edited by
no checkmark appears anymore when the checkbox is selected.
the other styling are the color of the text/label.
-
no checkmark appears anymore when the checkbox is selected.
the other styling are the color of the text/label.
1/4