📜  pyqt5 更改按钮颜色 - Python 代码示例

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

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

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

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

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