PDA

View Full Version : Menu icon size in stylesheet?



ComServant
13th November 2010, 04:08
Look at this image:
http://img293.imageshack.us/img293/6492/examplej.png

The circled icon - how can I make it larger using stylesheets or, alternatively, programmaticly? I googled, but mostly got archaic answers from previous QT versions. I'm currently using QT 4.6.

After pouring over the stylesheets documentation, I've tried both of these:


QMenu
{

icon-size: 50px 50px;
}

QMenu::icon
{

icon-size: 50px 50px;
}


Neither worked. I'm still new to style sheets... what am I doing wrong?

Farseer
19th November 2010, 14:45
you can refer to this thread: http://www.qtcentre.org/threads/4173-Why-does-QMenuBar-resize-icons

But there is another problem, when i change the size to 50, the icon and text overlap, it seems the text 's position doesn't change according to the icon's size. How to solve this problem? :confused::confused: