From 004e6913fa8a66d21b34ae79ac82b9fece8e2cdb Mon Sep 17 00:00:00 2001 From: "R. Aidan Campbell" Date: Mon, 30 Apr 2018 19:52:59 -0700 Subject: [PATCH] Fixed menu bar being merged with native in osx --- main.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/main.cpp b/main.cpp index b48f94ec..ef04b215 100644 --- a/main.cpp +++ b/main.cpp @@ -3,9 +3,14 @@ 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); MainWindow w; w.show(); return a.exec(); + }