Merge pull request #2081 from Cacodemon345/patch-49

qt: Set Application attributes before construction
This commit is contained in:
Miran Grča
2022-02-09 16:27:41 +01:00
committed by GitHub

View File

@@ -129,11 +129,12 @@ main_thread_fn()
}
int main(int argc, char* argv[]) {
QApplication app(argc, argv);
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
app.setAttribute(Qt::AA_UseHighDpiPixmaps);
app.setAttribute(Qt::AA_EnableHighDpiScaling);
QApplication::setAttribute(Qt::AA_DisableHighDpiScaling, false);
QApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
#endif
QApplication app(argc, argv);
qt_set_sequence_auto_mnemonic(false);
Q_INIT_RESOURCE(qt_resources);
Q_INIT_RESOURCE(qt_translations);