summaryrefslogtreecommitdiffstats
path: root/src/webenginewidgets
diff options
context:
space:
mode:
authorLeena Miettinen <riitta-leena.miettinen@qt.io>2018-09-11 16:07:48 +0200
committerKai Koehne <kai.koehne@qt.io>2018-09-24 09:05:16 +0000
commit464002679a0c620f1c9d579f17b942480bb7fc12 (patch)
tree668b76604212b9ea3d0c1fd5c6a331568d7488d4 /src/webenginewidgets
parentfeff8635d8a1962d149216750dbc15f5d799c630 (diff)
Doc: Mention that profile storage paths must be set before use
Task-number: QTBUG-66871 Change-Id: I246d667dfe341a6bfe7a74b24286403bec4dde8b Reviewed-by: Michal Klocek <michal.klocek@qt.io>
Diffstat (limited to 'src/webenginewidgets')
-rw-r--r--src/webenginewidgets/api/qwebengineprofile.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/webenginewidgets/api/qwebengineprofile.cpp b/src/webenginewidgets/api/qwebengineprofile.cpp
index 746fe55e8..1885f2085 100644
--- a/src/webenginewidgets/api/qwebengineprofile.cpp
+++ b/src/webenginewidgets/api/qwebengineprofile.cpp
@@ -77,7 +77,14 @@ using QtWebEngineCore::BrowserContextAdapter;
to a common QWebEngineScriptCollection instance.
Information about visited links is stored together with persistent cookies and other persistent
- data in a storage returned by persistentStoragePath(). The cache can be cleared of links by
+ data in a storage returned by storageName(). Persistent data is stored in a subdirectory set by
+ calling setPersistentStoragePath(), and the cache is located in a subdirectory set by calling
+ setCachePath(). The cache type can be set to \e in-memory or \e on-disk by calling
+ setHttpCacheType(). If only the storage name is set, the subdirectories are created and named
+ automatically. If you set any of the values manually, you should do it before creating any
+ pages that belong to the profile.
+
+ The cache can be cleared of links by calling
clearVisitedLinks() or clearAllVisitedLinks(). PersistentCookiesPolicy describes whether
session and persistent cookies are saved to and restored from memory or disk.