没用贴图,鼠标放上会变亮,能否贴下代码,谢谢了!~
------解决方案--------------------
随便一个QPushButton,在属性栏里找到stylesheet
将下面的文本放进去.
- CSS code
QPushButton { border: 1px solid #555555; border-radius: 4px; background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #dddddd, stop: 1 #999999); min-width: 80px; } QPushButton:hover{ background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #ffffff, stop: 1 #bbbbbb); } QPushButton:pressed{ background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #888888, stop: 1 #888888); }