Results 1 to 3 of 3

Thread: Suppressing menu icons on the Mac

  1. #1
    Join Date
    Mar 2006
    Location
    Mountain View, California
    Posts
    489
    Thanks
    3
    Thanked 74 Times in 54 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Suppressing menu icons on the Mac

    I'm porting an application to the Mac, and just stumbled across an annoyance. Qt insists on drawing QAction icons in the menus under the Mac. This is very un-Mac like, and my client is demanding I get rid of it. Unfortunately, I still need the icons on the toolbar. I'm also defining my actions with Designer.

    How do I get Qt to draw menus without icons? (Specifically for the Mac, or in general for all platforms).

    I've created a proxy style that inserts null icons into QStyleOptionMenuItems, but this is a nasty hack. Surely there's a better and easier way to do this. Any help out there?

  2. #2
    Join Date
    Jan 2006
    Location
    Alingsås, Sweden
    Posts
    437
    Thanks
    3
    Thanked 39 Times in 39 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Suppressing menu icons on the Mac

    I've never deployed on the mac myself, but perhaps this QQ article helps: http://doc.trolltech.com/qq/qq18-macfeatures.html .

  3. #3
    Join Date
    Mar 2006
    Location
    Mountain View, California
    Posts
    489
    Thanks
    3
    Thanked 74 Times in 54 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Suppressing menu icons on the Mac

    Quote Originally Posted by e8johan View Post
    I've never deployed on the mac myself, but perhaps this QQ article helps: http://doc.trolltech.com/qq/qq18-macfeatures.html .
    Unfortunately, that doesn't provide any relevant help. I've looked at the sources for QMacStyle, and as near as I can tell, icons will always be drawn.

    I could create a duplicate set of actions, without icons, and use them for the menus. But that doesn't sound like a good solution.

Similar Threads

  1. Context Menu on QTableWidget
    By ankurjain in forum Qt Programming
    Replies: 9
    Last Post: 17th December 2009, 09:52
  2. Facing problem with tool bar icons
    By jnana in forum Qt Programming
    Replies: 4
    Last Post: 20th April 2006, 08:37
  3. Qt/MacOSX preferences menu item
    By mcenatie in forum Qt Programming
    Replies: 4
    Last Post: 14th March 2006, 04:24
  4. Icons missing => segmentation fault
    By antonio.r.tome in forum Qt Programming
    Replies: 4
    Last Post: 8th March 2006, 16:30
  5. Tracking separators in a menu (insertSeparator)
    By PrimeCP in forum Qt Programming
    Replies: 4
    Last Post: 25th January 2006, 18:10

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.