summaryrefslogtreecommitdiffstats
path: root/src/webenginequick/doc/src/webengineview_lgpl.qdoc
diff options
context:
space:
mode:
authorAnu Aliyas <anu.aliyas@qt.io>2023-04-17 13:34:23 +0200
committerAnu Aliyas <anu.aliyas@qt.io>2023-04-20 16:32:38 +0200
commit97c3782e2f5ecd3115aab1d0216b989b55f54f21 (patch)
tree0a8832e5d214707e224585165ae8dd5bc428d84c /src/webenginequick/doc/src/webengineview_lgpl.qdoc
parent421d3c4e0b57170343df57de0b222d0f57a7bcb7 (diff)
Add WebEngineView::save() convenience API
Add the convenience method QQuickWebEngineView::save for saving pages without the need to explicitly handle download requests. Task-number: QTBUG-56093 Change-Id: I67909fdca6472d1ea9b32e0f89c1ab90219bca3b Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Michal Klocek <michal.klocek@qt.io>
Diffstat (limited to 'src/webenginequick/doc/src/webengineview_lgpl.qdoc')
-rw-r--r--src/webenginequick/doc/src/webengineview_lgpl.qdoc19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/webenginequick/doc/src/webengineview_lgpl.qdoc b/src/webenginequick/doc/src/webengineview_lgpl.qdoc
index be626c053..4dc99f00b 100644
--- a/src/webenginequick/doc/src/webengineview_lgpl.qdoc
+++ b/src/webenginequick/doc/src/webengineview_lgpl.qdoc
@@ -1528,5 +1528,24 @@
*/
+/*!
+ \qmlmethod void WebEngineView::save(const QString &filePath, QWebEngineDownloadRequest::SavePageFormat format)
+ \since QtWebEngine 6.6
+
+ Save the current web page to disk.
+
+ The web page is saved to \a filePath in the specified \a{format}.
+
+ This is a shortcut for the following actions:
+ \list
+ \li Trigger the Save web action.
+ \li Accept the next download item and set the specified file path and save format.
+ \endlist
+
+ This function issues an asynchronous download request for the web page and returns immediately.
+
+ \sa QWebEngineDownloadRequest::SavePageFormat
+*/
+
\sa {WebEngine Qt Quick Custom Touch Handle Example}
*/