summaryrefslogtreecommitdiffstats
path: root/examples/quick
diff options
context:
space:
mode:
authorVenugopal Shivashankar <Venugopal.Shivashankar@qt.io>2016-10-21 11:21:21 +0200
committerVenugopal Shivashankar <Venugopal.Shivashankar@qt.io>2016-10-28 11:25:10 +0000
commit1372abd309303b0de61fbb269f6e7f9ad32e1fbd (patch)
treed4ef3b28005008c2d5a903051d02feb314931d29 /examples/quick
parentaf9f8ffb479e35d131f2ff9bedc7cf46842f93ff (diff)
Example: Enable auto scaling on HighDPI screens
Task-number: QTBUG-56425 Change-Id: I2246245216fb8cd0d4dc4b15a0687edfc64ccad1 Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
Diffstat (limited to 'examples/quick')
-rw-r--r--examples/quick/shared/shared.h1
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");\