Results 1 to 2 of 2

Thread: Making icons in QMenu Bigger?

  1. #1
    Join Date
    Aug 2006
    Posts
    250
    Thanks
    19
    Thanked 49 Times in 36 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Making icons in QMenu Bigger?

    Hi all,

    I'm abusing a QToolBar and QToolButtons to make my toolbox for my app (previously I used a subclasses QListWidget but now I need to group tools). It looks like the attached image. This works pretty nicely but the problem is that when my tool names are two lines long, they are too tall for the menu items.

    Now I could do some magic with messing with the QAction text when actions are selected to remove the newline, but I'd rather just increase the height of each item in the menu. Is this possible? I couldn't find any way to change the height of menu items in the docs..
    Attached Images Attached Images

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Making icons in QMenu Bigger?

    I think this should be possible by using a proxy style provided there is some constant that controls the menu height. See our wiki for details.

  3. The following user says thank you to wysota for this useful post:

    pherthyl (28th October 2008)

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.