WebEngine QML 类型

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

import 语句: import QtWebEngine
Since: QtWebEngine 1.1

特性

方法

  • webEngineScript script () (since QtWebEngine 6.2)

详细描述

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;
}
					

特性文档编制

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

Default profile for all web engine views.

该特性在 QtWebEngine 1.1 引入。

另请参阅 WebEngineProfile .

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

Default settings for all web engine views.

该特性在 QtWebEngine 1.1 引入。

另请参阅 WebEngineSettings .

方法文档编制

[since QtWebEngine 6.2] webEngineScript script ()

构造 webEngineScript value, which can be set up and inserted into user scripts' collection for WebEngineView.userScripts or WebEngineProfile.userScripts 使用 WebEngineScriptCollection .

该方法在 QtWebEngine 6.2 引入。

另请参阅 webEngineScript and WebEngineScriptCollection .