diff options
author | Alessandro Portale <alessandro.portale@qt.io> | 2017-11-28 12:35:29 +0100 |
---|---|---|
committer | Alessandro Portale <alessandro.portale@qt.io> | 2017-11-28 13:36:29 +0000 |
commit | 8c3bd6159436d099127bd9cbb8271be8e18f95a5 (patch) | |
tree | df34ec0f086a11c93d094bc18eebcd20ea76b35d | |
parent | 2bc872e6b0bad747212b92ebbf965809797c7ce2 (diff) |
Qt Quick Application wizards: Qt::AA_EnableHighDpiScaling only on WIN
Setting Qt::AA_EnableHighDpiScaling causes a few graphics backends to
malfunction. This patch reduced the setting of the flag to happen only
on Windows (it is automatically set on macOS with retina).
Task-number: QTBUG-64815
Change-Id: I08fa5d1bd2c93e7a39c23487b684bd3f7b358783
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
Reviewed-by: Sami Nurmenniemi <sami.nurmenniemi@qt.io>
-rw-r--r-- | share/qtcreator/templates/wizards/projects/qtquickapplication/main.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/share/qtcreator/templates/wizards/projects/qtquickapplication/main.cpp b/share/qtcreator/templates/wizards/projects/qtquickapplication/main.cpp index 3b6ab97c69d..500db3de63c 100644 --- a/share/qtcreator/templates/wizards/projects/qtquickapplication/main.cpp +++ b/share/qtcreator/templates/wizards/projects/qtquickapplication/main.cpp @@ -11,7 +11,9 @@ int main(int argc, char *argv[]) qputenv("QT_IM_MODULE", QByteArray("qtvirtualkeyboard")); @endif +#if defined(Q_OS_WIN) QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling); +#endif QGuiApplication app(argc, argv); |