Hi @all,
How can I use the default checkboxes in a styled QMenu?
I saw the following in the docmentation
css Code:
QMenu::indicator:non-exclusive:unchecked { image: url(:/images/checkbox_unchecked.png); } QMenu::indicator:non-exclusive:unchecked:selected { image: url(:/images/checkbox_unchecked_hover.png); } QMenu::indicator:non-exclusive:checked { image: url(:/images/checkbox_checked.png); } QMenu::indicator:non-exclusive:checked:selected { image: url(:/images/checkbox_checked_hover.png); }To copy to clipboard, switch view to plain text mode
If I doesn't add these lines and I have an QActionGroup defined, then the checked elements have a gray background.
:Edit: The problem only occurs if an icon is set for the menu item.
Best Regards
NoRulez
Bookmarks