From aceda160982dd6faba1a80065c9c1e52c549da2c Mon Sep 17 00:00:00 2001 From: Kai Koehne Date: Wed, 15 Jun 2016 14:54:38 +0200 Subject: 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 --- examples/webenginewidgets/contentmanipulation/main.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'examples/webenginewidgets/contentmanipulation') diff --git a/examples/webenginewidgets/contentmanipulation/main.cpp b/examples/webenginewidgets/contentmanipulation/main.cpp index a21d881f4..2c6f77c60 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; -- cgit v1.2.3