Commit 8c3bd615 authored by Alessandro Portale's avatar Alessandro Portale

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's avatarEike Ziller <eike.ziller@qt.io>
Reviewed-by: Laszlo Agocs's avatarLaszlo Agocs <laszlo.agocs@qt.io>
Reviewed-by: Sami Nurmenniemi's avatarSami Nurmenniemi <sami.nurmenniemi@qt.io>
parent 2bc872e6
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment