diff options
| author | ruki <[email protected]> | 2020-08-10 22:46:02 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-08-10 22:46:02 +0800 |
| commit | 3cbe41e25b7a3dd0872daa9ea87ba786a9dc2df8 (patch) | |
| tree | 3dc41a0a73cbec44623576a6681c60dd1249afba /tests | |
| parent | 34f0d99925bd5471274368b11d1fdf773b268a06 (diff) | |
update qtquickapp test
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/projects/qt/quickapp/src/main.cpp | 2 | ||||
| -rw-r--r-- | tests/projects/qt/quickapp_static/src/main.cpp | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/tests/projects/qt/quickapp/src/main.cpp b/tests/projects/qt/quickapp/src/main.cpp index 6333b85c4..2ec4b880c 100644 --- a/tests/projects/qt/quickapp/src/main.cpp +++ b/tests/projects/qt/quickapp/src/main.cpp @@ -3,7 +3,9 @@ int main(int argc, char *argv[]) { +#if QT_VERSION >= 0x50601 QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling); +#endif QGuiApplication app(argc, argv); diff --git a/tests/projects/qt/quickapp_static/src/main.cpp b/tests/projects/qt/quickapp_static/src/main.cpp index 6333b85c4..2ec4b880c 100644 --- a/tests/projects/qt/quickapp_static/src/main.cpp +++ b/tests/projects/qt/quickapp_static/src/main.cpp @@ -3,7 +3,9 @@ int main(int argc, char *argv[]) { +#if QT_VERSION >= 0x50601 QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling); +#endif QGuiApplication app(argc, argv); |
