Solved How to edit the style of QActions?
-
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? -
Yes. They are on QMenus and QToolBars.
I'm looking for something like this:
QToolBar::item:hovered { /* don't highlight when hovered */ }
-
Hi
well for toolbar you can do something likeQToolButton:hover { background-color: transparent; }
Not sure for the QMenu.
-
@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!
-
@mrjj show me the right path and I found a solution.
QToolButton:!checked { border: none; }