summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMikko Gronoff <mikko.gronoff@qt.io>2018-08-30 20:58:52 +0300
committerMikko Gronoff <mikko.gronoff@qt.io>2018-08-31 08:33:57 +0000
commitce4d3833f5193168fb61392d08f61e73997632eb (patch)
tree8dd5bfef510e94515cc8a31b9bf06fa56f7f232a
parenta06152127bf4d1f9ee09f2938568be146238d9e4 (diff)
Do not enable HighDpiScaling on emulator
See QTBUG-64815. Change-Id: Id4a6f7059ef684393b05dfdb5c65740d129e6074 Reviewed-by: Sami Nurmenniemi <sami.nurmenniemi@qt.io>
-rw-r--r--src/main.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 2f744cc..2500a4a 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -73,7 +73,11 @@ int main(int argc, char **argv)
QIcon::setThemeSearchPaths(QStringList() << "/data/user/qt/qtquickcontrols2/icons");
QIcon::setThemeName("gallery");
- QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
+
+ // Do not set HighDpiScaling for emulator, see QTBUG-64815
+ if (qEnvironmentVariableIsEmpty("QTGLESSTREAM_DISPLAY")) {
+ QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
+ }
QApplication app(argc, argv);
app.setApplicationVersion(APPLICATION_VERSION);