AS , : Qt::WA_MacNormalSize, Qt::WA_MacSmallSize, Qt::WA_MacMiniSize, Qt::WA_MacVariableSize.
The easiest way I found for your entire application is to use QProxyStyle and QProxyStyle::polishset the attribute in the method the way you want.
Usually I’m sure that I DO NOT change the flags on QMenu widgets, as it interrupts the display of keyboard shortcuts.
So, for example, to make all widgets small, except for menus and those that I prefer to stay large, I do:
void QMveStyle::polish ( QWidget * w )
{
#ifdef __APPLE__
QMenu* mn = dynamic_cast<QMenu*>(w);
if(!mn && !w->testAttribute(Qt::WA_MacNormalSize))
w->setAttribute(Qt::WA_MacSmallSize);
#endif
}
mkrus source
share