Created
September 5, 2017 00:08
-
-
Save rcanepa/1afdcffb4f79f0eda47c8553fd6f9515 to your computer and use it in GitHub Desktop.
QT DontUseNativeMenuBar Mac
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include "mainwindow.h" | |
| #include <QApplication> | |
| #include <QCoreApplication> | |
| int main(int argc, char *argv[]) | |
| { | |
| QApplication a(argc, argv); | |
| QCoreApplication::setAttribute(Qt::AA_DontUseNativeMenuBar, true); | |
| MainWindow w; | |
| w.show(); | |
| return a.exec(); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment