2017-08-16 31 views

回答

1

能否請您嘗試以下選項:

選項1:

嘗試PaletteRole屬性類型

http://doc.qt.io/qt-5/stylesheet-reference.html#paletterole

當你需要徘徊,

QToolButton:hover { color: palette(light); } 

選項2:

用更輕的視圖創建不同的圖像圖標。

並設置背景當你hover就可以了。

QToolButton:hover { background: url("LighterView.png") ; } 
+0

似乎隻影響文字 – Cynede

+0

第二種方法的作品,但圖像比按鈕大,不適合它 – Cynede

+0

好的。感謝您的努力....從您學到了一些東西。 – Naidu

相關問題