From 1372abd309303b0de61fbb269f6e7f9ad32e1fbd Mon Sep 17 00:00:00 2001 From: Venugopal Shivashankar Date: Fri, 21 Oct 2016 11:21:21 +0200 Subject: Example: Enable auto scaling on HighDPI screens Task-number: QTBUG-56425 Change-Id: I2246245216fb8cd0d4dc4b15a0687edfc64ccad1 Reviewed-by: J-P Nurmi --- examples/quick/shared/shared.h | 1 + 1 file changed, 1 insertion(+) (limited to 'examples/quick/shared/shared.h') 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 //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");\ -- cgit v1.2.3