diff options
author | Venugopal Shivashankar <[email protected]> | 2016-10-21 11:21:21 +0200 |
---|---|---|
committer | Venugopal Shivashankar <[email protected]> | 2016-10-28 11:25:10 +0000 |
commit | 1372abd309303b0de61fbb269f6e7f9ad32e1fbd (patch) | |
tree | d4ef3b28005008c2d5a903051d02feb314931d29 /examples/quick/shared | |
parent | af9f8ffb479e35d131f2ff9bedc7cf46842f93ff (diff) |
Example: Enable auto scaling on HighDPI screens
Task-number: QTBUG-56425
Change-Id: I2246245216fb8cd0d4dc4b15a0687edfc64ccad1
Reviewed-by: J-P Nurmi <[email protected]>
Diffstat (limited to 'examples/quick/shared')
-rw-r--r-- | examples/quick/shared/shared.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/quick/shared/shared.h b/examples/quick/shared/shared.h index d8fb80b97e..0eed618d9d 100644 --- a/examples/quick/shared/shared.h +++ b/examples/quick/shared/shared.h @@ -44,6 +44,7 @@ #include <QQuickView> //Not using QQmlApplicationEngine because many examples don't have a Window{} #define DECLARATIVE_EXAMPLE_MAIN(NAME) int main(int argc, char* argv[]) \ {\ + QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);\ QGuiApplication app(argc,argv);\ app.setOrganizationName("QtProject");\ app.setOrganizationDomain("qt-project.org");\ |