diff options
author | Assam Boudjelthia <assam.boudjelthia@qt.io> | 2020-02-12 17:27:36 +0200 |
---|---|---|
committer | Assam Boudjelthia <assam.boudjelthia@qt.io> | 2020-03-03 19:35:11 +0200 |
commit | e5f4e1405947bcecd78f15bd76162ad6b54c2502 (patch) | |
tree | 02e09b206acee000f14cf29f3262fe79a2ee26ab /examples/widgets/painting/pathstroke/main.cpp | |
parent | 466d32160a23e6848fe0a42e74085c79071d7dec (diff) |
Examples: enable HighDPI scaling for examples on Android
These examples show very tiny UI elements on Android devices,
thus enabling HighDPI.
Task-number: QTBUG-80717
Change-Id: I813801d5249dc1fcfc6f61a8d146f60dd19901f6
Reviewed-by: BogDan Vatra <bogdan@kdab.com>
Diffstat (limited to 'examples/widgets/painting/pathstroke/main.cpp')
-rw-r--r-- | examples/widgets/painting/pathstroke/main.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/widgets/painting/pathstroke/main.cpp b/examples/widgets/painting/pathstroke/main.cpp index 57c85d73a3..35317480a3 100644 --- a/examples/widgets/painting/pathstroke/main.cpp +++ b/examples/widgets/painting/pathstroke/main.cpp @@ -55,6 +55,9 @@ int main(int argc, char **argv) { Q_INIT_RESOURCE(pathstroke); +#ifdef Q_OS_ANDROID + qputenv("QT_SCALE_FACTOR", "2"); +#endif QApplication app(argc, argv); |