文章目录
QPushBUtton控件样式
- 常用子控件
- 常用伪状态
QSS示例
代码:
QPushButton {
background-color: #99B5D1;
color: white;
font-weigth: bold;
border-radius: 20px;
}
QPushButton:hover {
background-color: red;
}
QPushButton:pressed {
background-color: yellow;
}
QPushButton:checked {
background-color: blue;
}
标签:控件,QPushButton,示例,color,QSS,样式表,background
From: https://blog.csdn.net/Oh_Python/article/details/144657996