将代码复制进QPushButton的样式表
效果:
代码:
QPushButton{ color:#52DCFE;border:2px solid #52DCFE;border-radius:5px;
}QPushButton::hover{background-color:#52DCFE;color:#ffffff;
}QPushButton::pressed,QPushButton::checked{background-color:#52DCFE;color:#ffffff;
}QPushButton::disabled{background-color:transparent;
}