diff --git a/src/app/main.cpp b/src/app/main.cpp index 97a509757b2..feecacb858f 100644 --- a/src/app/main.cpp +++ b/src/app/main.cpp @@ -161,7 +161,7 @@ static const char *setHighDpiEnvironmentVariable() { const char* envVarName = 0; static const char ENV_VAR_QT_DEVICE_PIXEL_RATIO[] = "QT_DEVICE_PIXEL_RATIO"; - if (Utils::HostOsInfo().isWindowsHost() + if (!Utils::HostOsInfo().isMacHost() && !qEnvironmentVariableIsSet(ENV_VAR_QT_DEVICE_PIXEL_RATIO) // legacy in 5.6, but still functional && !qEnvironmentVariableIsSet("QT_AUTO_SCREEN_SCALE_FACTOR") && !qEnvironmentVariableIsSet("QT_SCALE_FACTOR")