diff --git a/src/qt/qt_main.cpp b/src/qt/qt_main.cpp index dc9935686..ebeef8102 100644 --- a/src/qt/qt_main.cpp +++ b/src/qt/qt_main.cpp @@ -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);