diff --git a/qt/main.cpp b/qt/main.cpp index ccfbcc7705c..c8de293277d 100644 --- a/qt/main.cpp +++ b/qt/main.cpp @@ -50,7 +50,7 @@ int main( int argc, char* argv[] ) qInstallMessageHandler(messageOutput); #endif -#if ( QT_VERSION >= QT_VERSION_CHECK( 5, 6, 0 ) ) +#if ( QT_VERSION < QT_VERSION_CHECK( 6, 0, 0 ) ) QCoreApplication::setAttribute( Qt::AA_EnableHighDpiScaling ); qputenv( "QT_AUTO_SCREEN_SCALE_FACTOR", "1" ); #endif