QT按钮样式表示例
QPushButton#btn_login
{
background-color: rgb(39, 118, 148);
color: white;
border-radius: 10px;
border: 2px groove gray;
border-style: outset;
}
QPushButton#btn_login:pressed
{
background-color:rgb(85, 170, 255);
border-style: inset;
}
QRadioButton::indicator:checked
{
background-color: rgb(55, 55, 255);
border-radius: 6px;
}
附:border-style可选如下
dashed
| dot-dash
| dot-dot-dash
| dotted
| double
| groove
| inset
| outset
| ridge
| solid
| none
QTabWidget样式
QTabBar::tab
{
height:30px;
width:100px;
font: 16pt "楷体";
}