Obsolete Members for WebEngineProfile

The following members of QML type WebEngineProfile are obsolete. They are provided to keep old source code working. We strongly advise against using them in new code.

Properties

Property Documentation

cachePath : string

The path to the location where the profile's caches are stored, in particular the HTTP cache.

By default, the caches are stored below QStandardPaths::writableLocation(QStandardPaths::CacheLocation) in a directory named using storageName.


downloadPath : string

The path to the location where the downloaded files are stored.

Overrides the default path used for download location.

If set to an empty string, the default path is restored.

Note: By default, the download path is QStandardPaths::DownloadLocation.

This property was introduced in QtWebEngine 1.9.


httpAcceptLanguage : string

The value of the Accept-Language HTTP request-header field.

This property was introduced in QtWebEngine 1.2.


httpCacheMaximumSize : int

The maximum size of the HTTP cache. If 0, the size will be controlled automatically by QtWebEngine. The default value is 0.

See also httpCacheType.


httpCacheType : enumeration

This enumeration describes the type of the HTTP cache:

ConstantDescription
WebEngineProfile.MemoryHttpCacheUses an in-memory cache. This is the only setting possible if offTheRecord is set or no persistentStoragePath is available.
WebEngineProfile.DiskHttpCacheUses a disk cache. This is the default value.
WebEngineProfile.NoCacheDisables caching. (Added in 5.7)

httpUserAgent : string

The user-agent string sent with HTTP to identify the browser.

Note: On Windows 8.1 and newer, the default user agent will always report "Windows NT 6.2" (Windows 8), unless the application does contain a manifest that declares newer Windows versions as supported.


offTheRecord : bool

Whether the web engine profile is off-the-record. An off-the-record profile forces cookies, the HTTP cache, and other normally persistent data to be stored only in memory.


persistentCookiesPolicy : enumeration

This enumeration describes the policy of cookie persistency:

ConstantDescription
WebEngineProfile.NoPersistentCookiesBoth session and persistent cookies are stored in memory. This is the only setting possible if offTheRecord is set or no persistentStoragePath is available.
WebEngineProfile.AllowPersistentCookiesCookies marked persistent are saved to and restored from disk, whereas session cookies are only stored to disk for crash recovery. This is the default setting.
WebEngineProfile.ForcePersistentCookiesBoth session and persistent cookies are saved to and restored from disk.

persistentStoragePath : string

The path to the location where the persistent data for the browser and web content are stored. Persistent data includes persistent cookies, HTML5 local storage, and visited links.

By default, the storage is located below QStandardPaths::writableLocation(QStandardPaths::DataLocation) in a directory named using storageName.


spellCheckEnabled : bool

This property holds whether the web engine spell checker is enabled.

This property was introduced in QtWebEngine 1.4.


spellCheckLanguages : list<string>

This property holds the list of languages used by the spell checker. Each language should match the name of the .bdic dictionary. For example, the language en-US will load the en-US.bdic dictionary file.

See the Spellchecker feature documentation for how dictionary files are searched.

For more information about how to compile .bdic dictionaries, see the Spellchecker Example.

This property was introduced in QtWebEngine 1.4.


storageName : string

The storage name that is used to create separate subdirectories for each profile that uses the disk for storing persistent data and cache.

See also WebEngineProfile::persistentStoragePath and WebEngineProfile::cachePath.


userScripts : list<WebEngineScript>

Returns the collection of WebEngineScripts that are injected into all pages that share this profile.

This property was introduced in Qt 1.5.

See also WebEngineScript.