PDA

View Full Version : QAction Icon



hgedek
14th September 2007, 12:21
How can I change the icon size of an action ?(I will use this icon and action at a pushButton menu!)

jpn
14th September 2007, 12:30
QAction does not care about icon size. It is up to the various widgets out there to represent an action in a way they want. For example QMenu and QToolButton both do so in a different way.

QMenu uses styles to decide the correct icon size for the platform in use. You can trick QMenu to use larger icon size with a custom style. For more details, see thread: http://www.qtcentre.org/forum/f-qt-programming-2/t-why-does-qmenubar-resize-icons-4173.html