📜  pyqt 更改按钮颜色 - 任何代码示例

📅  最后修改于: 2022-03-11 14:58:55.539000             🧑  作者: Mango

代码示例1
QPushButton button1, button2, button3;

button1.setStyleSheet("background-color: red");

button2.setStyleSheet("background-color:#ff0000;");

button3.setStyleSheet("background-color:rgb(255,0,0)");