diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2018-08-22 10:57:07 +0000 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2018-08-22 10:57:07 +0000 |
commit | 5cf502ff07123606aadbf1fc358493b9f06ea3f7 (patch) | |
tree | 6fecfbfafcaceaa791861a8c4d2c36cc0892b46d /src/webenginewidgets/api/qwebenginepage.cpp | |
parent | 4f8e38f3b9da8c2d50674b0002d5186a4b073913 (diff) | |
parent | be18c1dcfa68328acdf11e0a534749d9a5d75f8b (diff) | |
download | qtwebengine-5cf502ff07123606aadbf1fc358493b9f06ea3f7.tar.gz |
Merge "Merge remote-tracking branch 'origin/5.11' into 5.12" into refs/staging/5.12
Diffstat (limited to 'src/webenginewidgets/api/qwebenginepage.cpp')
-rw-r--r-- | src/webenginewidgets/api/qwebenginepage.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/webenginewidgets/api/qwebenginepage.cpp b/src/webenginewidgets/api/qwebenginepage.cpp index 6a4554b57..96468f173 100644 --- a/src/webenginewidgets/api/qwebenginepage.cpp +++ b/src/webenginewidgets/api/qwebenginepage.cpp @@ -2365,6 +2365,11 @@ void QWebEnginePage::printToPdf(const QWebEngineCallback<const QByteArray&> &res It is the users responsibility to ensure the \a printer remains valid until \a resultCallback has been called. + \note The rendering of the current content into a temporary PDF document is asynchronous and does + not block the main thread. However, the subsequent rendering of PDF into \a printer runs on the + main thread and will therefore block the event loop. Moreover, printing runs on the browser + process, which is by default not sandboxed. + The \a resultCallback must take a boolean as parameter. If printing was successful, this boolean will have the value \c true, otherwise, its value will be \c false. \since 5.8 |