pushbutton更改背景色:
ui->pushButton->setStyleSheet("background-color:red");
也可以
ui->pushButton->setStyleSheet("background-color:rgb(0,255,0)");
label更改背景色:
ui->label->setStyleSheet("background-color:yellow");
pushbutton更改背景色:
ui->pushButton->setStyleSheet("background-color:red");
也可以
ui->pushButton->setStyleSheet("background-color:rgb(0,255,0)");
label更改背景色:
ui->label->setStyleSheet("background-color:yellow");