qt label colours code example Example: qt label set text color ui->labelName->setStyleSheet("color: #FF0000");