summaryrefslogtreecommitdiffstats
path: root/examples/webenginewidgets/contentmanipulation
diff options
context:
space:
mode:
authorKai Koehne <kai.koehne@qt.io>2016-06-15 14:54:38 +0200
committerJoerg Bornemann <joerg.bornemann@qt.io>2016-06-20 06:54:39 +0000
commitaceda160982dd6faba1a80065c9c1e52c549da2c (patch)
treee3871e4bc2a38f3eaf411170bf5b7dbf20529996 /examples/webenginewidgets/contentmanipulation
parent323f300fd54d3fdb6f7a4565f305b631a27e76d5 (diff)
Make all examples high-dpi aware
Setting the Qt::AA_EnableHighDpiScaling attribute makes sure that the scrollbars are scaled, and that the default zoom level is sensible. Task-number: QTBUG-54113 Change-Id: I0ae7eb97cb9e2824e7f9b92d77cf2986cac66685 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'examples/webenginewidgets/contentmanipulation')
-rw-r--r--examples/webenginewidgets/contentmanipulation/main.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/webenginewidgets/contentmanipulation/main.cpp b/examples/webenginewidgets/contentmanipulation/main.cpp
index a21d881f..2c6f77c6 100644
--- a/examples/webenginewidgets/contentmanipulation/main.cpp
+++ b/examples/webenginewidgets/contentmanipulation/main.cpp
@@ -44,6 +44,7 @@
int main(int argc, char * argv[])
{
+ QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
QApplication app(argc, argv);
QUrl url;