Pyqt覆盖按钮,按钮变色

在按钮的样式表里输入以下代码

QPushButton{color: rgb(102, 131, 156);

background-color: rgb(37, 43, 51);

border-radius:10px;

}

QPushButton:hover{

background-color: rgb(0, 200, 176);

color: rgb(255, 255, 255);

}

posted @ 2023-05-10 10:36  祥瑞哈哈哈  阅读(62)  评论(0)    收藏  举报