Fixed menu bar being merged with native in osx
This commit is contained in:
parent
69e36050c8
commit
004e6913fa
1 changed files with 5 additions and 0 deletions
5
main.cpp
5
main.cpp
|
|
@ -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();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue