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