Results 1 to 9 of 9

Thread: Why QAction inside Qmenu doesn't display Icon ?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Oct 2007
    Posts
    12
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Why QAction inside Qmenu doesn't display Icon ?

    Hi,

    If you are using Qt 4.6, there is a new property on QAction named "iconVisibleInMenu"

    Could be that....

  2. #2
    Join Date
    Jul 2006
    Location
    Catalunya - Spain
    Posts
    117
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    16
    Thanked 8 Times in 8 Posts

    Default Re: Why QAction inside Qmenu doesn't display Icon ?

    Quote Originally Posted by yonnak View Post
    Hi,

    If you are using Qt 4.6, there is a new property on QAction named "iconVisibleInMenu"

    Could be that....
    Could be, but this property appeared on Qt 4.4, and I've experienced the misfunction from 4.5.3 to 4.6 and rarely trolls change behaviour in that sense without any advise

    I think it's a regression. I've been looking at QMenu's code and I cannot see nothing wrong.

  3. #3
    Join Date
    Oct 2007
    Posts
    12
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Why QAction inside Qmenu doesn't display Icon ?

    I was thinking about that because I had the same problem.
    It was OK with 4.5 but in 4.6, no more icons in the main menuBar, checking this property for each action in designer and recompiling it solved the problem.

    Edit Maybe not linked with 4.6 but with the new version of QtCreator, as long as I install the complete SDK.

  4. #4
    Join Date
    Jul 2006
    Location
    Catalunya - Spain
    Posts
    117
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    16
    Thanked 8 Times in 8 Posts

    Default [SOLVED] Why QAction inside Qmenu doesn't display Icon ?

    As yonnak said, is was "iconVisibleInMenu" property. Beginning at 4.6.0 version is set to false ( on 4.5.3 was set to true by default )

    So is a behaviour change. I don't know why, but trolls decided to set this flag to false without advice.

    So changing ALL the places where i use a QAction solved the problem. Not nice, but is a workaround for me.

    Anyway, the "BUG" is open, to obtain at least an explanation about this change...

Similar Threads

  1. how to add QMenu or QAction inside QDesigner
    By eric_vi in forum Qt Tools
    Replies: 1
    Last Post: 2nd August 2009, 16:48
  2. QAction Icon
    By ashishsaryar in forum Qt Programming
    Replies: 3
    Last Post: 31st December 2008, 07:24
  3. QStyle : how to make the QMenu display in middle?
    By nish in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 27th November 2008, 10:39
  4. How to change Icon size in QMenu?
    By alex chpenst in forum Qt Programming
    Replies: 4
    Last Post: 3rd September 2008, 14:16
  5. Replies: 2
    Last Post: 23rd February 2006, 16:38

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
  •  
Qt is a trademark of The Qt Company.