From 464002679a0c620f1c9d579f17b942480bb7fc12 Mon Sep 17 00:00:00 2001 From: Leena Miettinen Date: Tue, 11 Sep 2018 16:07:48 +0200 Subject: Doc: Mention that profile storage paths must be set before use Task-number: QTBUG-66871 Change-Id: I246d667dfe341a6bfe7a74b24286403bec4dde8b Reviewed-by: Michal Klocek --- src/webenginewidgets/api/qwebengineprofile.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/webenginewidgets/api/qwebengineprofile.cpp') 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. -- cgit v1.2.3