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/markdowneditor/main.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'examples/webenginewidgets/markdowneditor/main.cpp') diff --git a/examples/webenginewidgets/markdowneditor/main.cpp b/examples/webenginewidgets/markdowneditor/main.cpp index 73fe58199..a99f401cb 100644 --- a/examples/webenginewidgets/markdowneditor/main.cpp +++ b/examples/webenginewidgets/markdowneditor/main.cpp @@ -45,6 +45,7 @@ int main(int argc, char *argv[]) { + QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling); QApplication a(argc, argv); MainWindow window; -- cgit v1.2.3