summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);