qt: Set Application attributes before construction

This commit is contained in:
Cacodemon345
2022-02-09 20:49:11 +06:00
committed by GitHub
parent 1654c8ec8f
commit a1f027a242

View File

@@ -129,11 +129,11 @@ 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_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);