Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
5.0.2, 5.1.1, 5.2.0
-
Mac OS X
-
-
3fadd88f30d7308500b7d6012c45346e9c6f47d0
Description
There's no gap at all in Mac QMenubar if Qt::AA_DontUseNativeMenuBar flag is set.
Regression issue. Works fine on Qt 4.8.5.
#include "mainwindow.h" #include <QApplication> #include <QMenuBar> int main(int argc, char *argv[]) { QApplication::setAttribute(Qt::AA_MacPluginApplication); QApplication a(argc, argv); QApplication::setAttribute(Qt::AA_DontUseNativeMenuBar); MainWindow w; QMenuBar * menuBar = new QMenuBar(); menuBar->addMenu("File"); menuBar->addMenu("Edit"); w.setMenuBar(menuBar); menuBar->show(); w.show(); return a.exec(); }
Attachments
For Gerrit Dashboard: QTBUG-36224 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
76138,1 | Mac Style: Fix non-native menubar item spacing | release | qt/qtbase | Status: MERGED | +2 | 0 |