From 8124f0bc1893e0997989913044665fa1c5cf79d7 Mon Sep 17 00:00:00 2001 From: Szabolcs David Date: Thu, 25 Oct 2018 16:36:12 +0200 Subject: Move printing operation to a new thread MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Printing operations were blocking the UI thread, so applications were irresponsive when printing in large size or high resolution. Introduce a new worker for the painting logic and use shared pointers to carry the data around and avoid copying PDF data between threads. Task-number: QTBUG-68561 Change-Id: I30633380b75acd14f1a1df87985c99540168a9f1 Reviewed-by: Michael BrĂ¼ning --- src/webenginewidgets/webenginewidgets.pro | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/webenginewidgets/webenginewidgets.pro') diff --git a/src/webenginewidgets/webenginewidgets.pro b/src/webenginewidgets/webenginewidgets.pro index e61575d3a..4669c2bce 100644 --- a/src/webenginewidgets/webenginewidgets.pro +++ b/src/webenginewidgets/webenginewidgets.pro @@ -49,6 +49,9 @@ HEADERS = \ qtConfig(webengine-printing-and-pdf) { QT += printsupport + + SOURCES += printer_worker.cpp + HEADERS += printer_worker.h } load(qt_module) -- cgit v1.2.3