diff --git a/src/app/main.cpp b/src/app/main.cpp
index d2fa179bdd12c3f90c51715c751bbd7ca465bc96..3e9a523823246ab6cccdd71256ea90f64912f80f 100644
--- a/src/app/main.cpp
+++ b/src/app/main.cpp
@@ -292,10 +292,13 @@ static inline QSettings *userSettings()
 
 int main(int argc, char **argv)
 {
+#if (QT_VERSION < QT_VERSION_CHECK(5, 6, 0))
     if (Utils::HostOsInfo().isWindowsHost()
             && !qEnvironmentVariableIsSet("QT_DEVICE_PIXEL_RATIO")) {
         qputenv("QT_DEVICE_PIXEL_RATIO", "auto");
     }
+#endif // < Qt 5.6
+
     QLoggingCategory::setFilterRules(QLatin1String("qtc.*.debug=false"));
 #ifdef Q_OS_MAC
     // increase the number of file that can be opened in Qt Creator.