Change Qt menu bar height using QStyle / QProxyStyle?
-
I'm trying to use QProxyStyle to dynamically tweak my style. I have successfully changed the toolbar icon size by overriding pixelMetric() and using QStyle::PM_ToolBarIconSize, but I can't seem to find the right enum and possible function to override to change the menu bar height. How do I do this?
It can be done by setting the style sheet using something like:
QApplication::setStyleSheet( "QMenuBar::item { spacing: 0px; padding: 3px 6px 3px 8px; }" );
But, for cleanliness and simplicity, I would like to keep my style tweaks contained to a single methodology.