diff options
author | Jüri Valdmann <juri.valdmann@qt.io> | 2019-04-23 11:01:45 +0200 |
---|---|---|
committer | Jüri Valdmann <juri.valdmann@qt.io> | 2019-04-24 06:13:20 +0000 |
commit | 3630045f7126c5b1ce542600e2a8dbd3c5ffa754 (patch) | |
tree | be5cd7a960a8bf9333238ced626d8c12882f1200 /examples | |
parent | 29589c46b00df37d508dc1af0aa9c74a1d0bf056 (diff) |
Enable HiDPI for customdialogs and spellcheckers examples
Task-number: QTBUG-75103
Change-Id: I8290ba268f30b26eafccabc889ad860e95c1bca2
Reviewed-by: Michal Klocek <michal.klocek@qt.io>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/webengine/customdialogs/main.cpp | 1 | ||||
-rw-r--r-- | examples/webenginewidgets/spellchecker/main.cpp | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/examples/webengine/customdialogs/main.cpp b/examples/webengine/customdialogs/main.cpp index 35f39211d..82a3eca63 100644 --- a/examples/webengine/customdialogs/main.cpp +++ b/examples/webengine/customdialogs/main.cpp @@ -66,6 +66,7 @@ typedef QGuiApplication Application; int main(int argc, char *argv[]) { QCoreApplication::setOrganizationName("QtExamples"); + QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling); Application app(argc, argv); QtWebEngine::initialize(); diff --git a/examples/webenginewidgets/spellchecker/main.cpp b/examples/webenginewidgets/spellchecker/main.cpp index c2951fe00..bf056ea9e 100644 --- a/examples/webenginewidgets/spellchecker/main.cpp +++ b/examples/webenginewidgets/spellchecker/main.cpp @@ -54,6 +54,7 @@ int main(int argc, char *argv[]) { QCoreApplication::setOrganizationName("QtExamples"); + QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling); QApplication app(argc, argv); WebView view; |