From 85e1b4d0896465b825f561330a66e5bfd3928087 Mon Sep 17 00:00:00 2001 From: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com> Date: Tue, 25 Aug 2015 17:00:22 +0200 Subject: [PATCH] Set environment variable QT_AUTO_SCREEN_SCALE_FACTOR in Qt 5.6. Amends de3b2b6493c810380e961bb8b36b805a505b55b7 to set the variable. Change-Id: I305e0d911e42f76ee6f93406c012000a63bf7bc5 Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com> Reviewed-by: Paul Olav Tvete <paul.tvete@theqtcompany.com> --- src/app/main.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/app/main.cpp b/src/app/main.cpp index bb10f99790a..f8ce9a87f44 100644 --- a/src/app/main.cpp +++ b/src/app/main.cpp @@ -299,6 +299,8 @@ int main(int argc, char **argv) && !qEnvironmentVariableIsSet("QT_DEVICE_PIXEL_RATIO")) { qputenv("QT_DEVICE_PIXEL_RATIO", "auto"); } +#else + qputenv("QT_AUTO_SCREEN_SCALE_FACTOR", "1"); #endif // < Qt 5.6 QLoggingCategory::setFilterRules(QLatin1String("qtc.*.debug=false")); -- GitLab