Fixed menu bar being merged with native in osx

This commit is contained in:
R. Aidan Campbell 2018-04-30 19:52:59 -07:00
parent 69e36050c8
commit 004e6913fa

View File

@ -3,9 +3,14 @@
int main(int argc, char *argv[]) int main(int argc, char *argv[])
{ {
// MacOS directive to prevent the menu bar from being merged into the native bar
// i.e. it's in the window, and not the top left of the screen
QCoreApplication::setAttribute(Qt::AA_DontUseNativeMenuBar);
QApplication a(argc, argv); QApplication a(argc, argv);
MainWindow w; MainWindow w;
w.show(); w.show();
return a.exec(); return a.exec();
} }