PDA

View Full Version : QToolBar icon size



^NyAw^
29th March 2007, 11:58
Hi,

I'm trying to change the icon size of a ToolBar but it seems to not work.



myToolBar->setIconSize(QSize(48,48));


Also I have tryied this in the QMainWindow class but nothing happens.



setIconSize(QSize(48,48));


I'm using Qt 4.1.0 on Windows XP

Thanks,

aamer4yu
29th March 2007, 12:35
Its working fine for me in windows Xp and Qt 4.2.0

try it with newer version of Qt

^NyAw^
29th March 2007, 12:39
Hi,

Ok, will download and try it.

Thanks,

vfernandez
29th March 2007, 13:12
It's a bug in Qt 4.1.0. It was fixed in 4.1.1:

http://www.trolltech.com/developer/notes/changes/changes-4.1.1/