I am trying to change the text color of the QCheckBox and surprisingly, nothing happens. I tried it like this first:
chk_attachments.setStyleSheet("QCheckBox { color : #767676 }");
chk_attachments.setStyleSheet("QCheckBox { color : #767676 }");
To copy to clipboard, switch view to plain text mode
and like this:
chk_attachments.setText("Attachments");
p=chk_attachments.palette();
chk_attachments.setPalette(p);
QPalette p;
chk_attachments.setText("Attachments");
p=chk_attachments.palette();
p.setColor(QPalette::Text, Qt::red);
chk_attachments.setPalette(p);
To copy to clipboard, switch view to plain text mode
why my attempts are ignored by QT?
Bookmarks