I am trying to change the text color of the QCheckBox and surprisingly, nothing happens. I tried it like this first:

Qt Code:
  1. chk_attachments.setStyleSheet("QCheckBox { color : #767676 }");
To copy to clipboard, switch view to plain text mode 

and like this:
Qt Code:
  1. chk_attachments.setText("Attachments");
  2. p=chk_attachments.palette();
  3. p.setColor(QPalette::Text, Qt::red);
  4. chk_attachments.setPalette(p);
To copy to clipboard, switch view to plain text mode 

why my attempts are ignored by QT?