1、样式表
QPushButton {
color:#242424;
font-size:23px;
background-color: #d4d4ce;
border-radius:10px;
padding:2px 4px;
min-width:130px;
min-height:40px;
}
QPushButton:hover:enabled{
background: qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1, stop:0 #55afff, stop:1 #55b9ff);
}
QPushButton:pressed{
background: qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1, stop:0 #5582ff, stop:1 #5596ff);
}
QPushButton:enabled{
background: #d4d4ce;
}
QPushButton:disabled{
background: #505050;
}