WebViewSettings QML Type

Allows configuration of browser properties and attributes. 更多...

导入语句: import QtWebView
Since: QtWebView 6.5

特性

详细描述

The WebViewSettings type can be used to configure browser properties and generic attributes, such as JavaScript support, file access and local storage features. This type is uncreatable, but the default settings for all web views can be accessed by using the WebView.settings 特性。

The default values are left as set by the different platforms.

特性文档编制

allowFileAccess : bool

Enables the WebView to load file URLs.


javascriptEnabled : bool

Enables the running of JavaScript programs.


localContentCanAccessFileUrls : bool

Allows locally loaded documents to access other local URLs.


localStorageEnabled : bool

Enables support for the HTML 5 local storage feature.