PDA

View Full Version : how to modify menu item height



blackfox
9th September 2008, 08:26
hello, dear all,
I want to modify the default height of menu items. How could I realise that?

Thanks.

aamer4yu
9th September 2008, 09:28
Menu items usually display text. You can try increasing the application font.

As for the size, I dont know.
There was a thread on how to increase icon size for menu... May it can help you. (this (http://www.qtcentre.org/forum/f-qt-programming-2/t-why-does-qmenubar-resize-icons-4173.html))

blackfox
9th September 2008, 10:02
Menu items usually display text. You can try increasing the application font.

As for the size, I dont know.
There was a thread on how to increase icon size for menu... May it can help you. (this (http://www.qtcentre.org/forum/f-qt-programming-2/t-why-does-qmenubar-resize-icons-4173.html))


Thnx for your reply. I have noticed this thread on board. This can be implemented by modify
-------------------------------------------------------------------------------------
sizeFromContents(ContentsType type, const QStyleOption* opt,
const QSize &csz, const QWidget *widget ) const