QT改变按钮的颜色 QString qstrStylesheet = "background-color:rgb(255,0,0)"; ui.pushButton->setStyleSheet(qstrStylesheet);