Update main.cpp
This commit is contained in:
parent
0078d1694b
commit
b30535da60
|
@ -55,7 +55,9 @@ int main(int argc, char *argv[])
|
||||||
// QCoreApplication::setAttribute(Qt::AA_DisableHighDpiScaling);
|
// QCoreApplication::setAttribute(Qt::AA_DisableHighDpiScaling);
|
||||||
//}
|
//}
|
||||||
|
|
||||||
|
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
|
||||||
QApplication::setAttribute(Qt::AA_DisableWindowContextHelpButton);
|
QApplication::setAttribute(Qt::AA_DisableWindowContextHelpButton);
|
||||||
|
#endif
|
||||||
|
|
||||||
QtSingleApplication app(argc, argv);
|
QtSingleApplication app(argc, argv);
|
||||||
app.setQuitOnLastWindowClosed(false);
|
app.setQuitOnLastWindowClosed(false);
|
||||||
|
|
Loading…
Reference in New Issue