左上角“最小化”和“关闭”按钮的qss代码
1.最小化:
QPushButton{ border:0; background-color: rgb(255, 255, 255); font: 75 18pt "黑体";} QPushButton:hover{ background-color: rgb(240, 240, 240); } QPushButton:pressed{ background-color: rgb(204, 204, 204); }
2.关闭:
QPushButton{ border:0; background-color: rgb(255, 255, 255); font: 75 14pt "黑体"; border-top-right-radius:4px; border-top-left-radius:0px; border-bottom-right-radius:0px; border-bottom-left-radius:0px; } QPushButton:hover{ background-color: rgb(255, 0, 127); color: rgb(255, 255, 255);} QPushButton:pressed{ background-color: rgb(170, 0, 0); color: rgb(255, 255, 255);}
浙公网安备 33010602011771号