I'm using style sheets to edit some checkboxes to my liking. I can change the color of the text with
color: rgb(255,0,0); // Red text
and I can change the look of the checkbox itself with
QCheckBox::indicator
{
background-color: qlineargradient(...);
border: 2px solid rgb(170, 57, 57);
width: 50px;
height: 50px;
border-radius: 10px;
};
...but I can't do both at the same time. If I place both sections of code in the style sheet together, the text color edit gets ignored, regardless of whether I put it inside or outside the indicator bracketed section. I've noticed that this also applies to background color changes.
I assume I'm missing something about how style sheets work (especially regarding QCheckBox), but none of the Qt documentation I've found so far is helpful (I'm using Qt 4.8 in Qt Creator).