example:
按键
ui->pushButton->setStyleSheet("background-color:red;color:white;");
children 会沿用parent 的stylesheet
Widget w;
w.show();
w.setStyleSheet( "background-color:white;color:black;");
example:
按键
ui->pushButton->setStyleSheet("background-color:red;color:white;");
children 会沿用parent 的stylesheet
Widget w;
w.show();
w.setStyleSheet( "background-color:white;color:black;");