PDA

View Full Version : Making icons in QMenu Bigger?



pherthyl
28th October 2008, 03:04
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..

wysota
28th October 2008, 07:54
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.