WebViewSettings QML Type

Allows configuration of browser properties and attributes. More...

Import Statement: import QtWebView
Since: QtWebView 6.5

Properties

Detailed Description

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 property.

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

Property Documentation

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.


© 2024 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.