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