第一種是按鍵上面的字顏色的改變:
1 ui->motor1->setStyleSheet("color: red");
效果:

第二種是背景改變:
1 ui->motor1->setStyleSheet("background-color: rgb(175,238,238)");
效果:
第一種是按鍵上面的字顏色的改變:
1 ui->motor1->setStyleSheet("color: red");
效果:

第二種是背景改變:
1 ui->motor1->setStyleSheet("background-color: rgb(175,238,238)");
效果:
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。