How to edit the style of QActions?
-
wrote on 12 Jun 2019, 11:54 last edited by rrd0 6 Dec 2019, 11:54
By default, QActions are highlighted when hovered. I'd like to remove that effect. How can I do that on a stylesheet?
-
Hi
QActions are not visual
so it must be in a menu or toolbar you mean? -
Hi
well for toolbar you can do something likeQToolButton:hover { background-color: transparent; }
Not sure for the QMenu.
-
Hi
well for toolbar you can do something likeQToolButton:hover { background-color: transparent; }
Not sure for the QMenu.
wrote on 12 Jun 2019, 13:39 last edited by rrd0 6 Dec 2019, 13:40@mrjj said in How to edit the style of QActions?:
Hi
well for toolbar you can do something likeQToolButton:hover { background-color: transparent; }
That code turns QActions into black squares. But it changed QActions' hover behaviour, so it was close. Thanks!
6/6