[Interest] QMenu: remove icons

Igor Grivko igrivko at ics.com
Wed Mar 20 11:55:16 CET 2013


Hi Sensei,

There is a property in QAction:
iconVisibleInMenu : bool

I suppose you need to use it.

Best regards,
Igor Grivko

On Wed, Mar 20, 2013 at 2:46 PM, Sensei <senseiwa at gmail.com> wrote:

> Dear all,
>
> it should be easy, but I didn't find any way to do this. How do I remove
> icons in a QMenu?
>
> More precisely: I add QActions to a menu, and each QAction has an icon.
> On OSX the standard is NOT to display icons in menus, but only in toolbars.
>
> The only way I've found is stupid and cumbersome: create two sets of
> QActions, one for the menu, one for the toolbar.
>
>
> Is there a neat way?
>
>
>
> Thanks & Cheers!
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20130320/7552cc89/attachment.html>


More information about the Interest mailing list