WebEngine QML 類型

Provides access to the default settings and profiles shared by all web engine views. 更多...

import 語句: import QtWebEngine
Since: QtWebEngine 1.1

特性

方法

詳細描述

The WebEngine singleton type provides access to the default profile and the default settings shared by all web engine views. It can be used to change settings globally, as illustrated by the following code snippet:

Component.onCompleted: {
    WebEngine.settings.pluginsEnabled = true;
}
					

特性文檔編製

[read-only, since QtWebEngine 1.1] defaultProfile : WebEngineProfile

Default profile for all web engine views.

該特性在 QtWebEngine 1.1 引入。

另請參閱 WebEngineProfile .

[read-only, since QtWebEngine 1.1] settings : WebEngineSettings

Default settings for all web engine views.

該特性在 QtWebEngine 1.1 引入。

另請參閱 WebEngineSettings .


方法文檔編製

[since QtWebEngine 6.2] WebEngineScript script ()

Constructs WebEngineScript , which can be set up and inserted into user scripts' collection for WebEngineView.userScripts or WebEngineProfile.userScripts 使用 WebEngineScriptCollection .

This method was introduced in QtWebEngine 6.2.

另請參閱 WebEngineScript and WebEngineScriptCollection .