WebEngine QML Type

すべてのウェブエンジンビューで共有されるデフォルト設定とプロファイルへのアクセスを提供します。詳細...

Import Statement: import QtWebEngine
Since: QtWebEngine 1.1

プロパティ

  • defaultProfile : WebEngineProfile (since QtWebEngine 1.1)
  • settings : WebEngineSettings (since QtWebEngine 1.1)

方法

  • WebEngineScript script() (since QtWebEngine 6.2)

詳細説明

WebEngine シングルトン型は、すべての Web エンジン ビューで共有されるデフォルト プロファイルとデフォルト設定へのアクセスを提供します。次のコード スニペットで説明するように、これを使用して設定をグローバルに変更できます:

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

プロパティ ドキュメント

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

すべてのウェブエンジンビューのデフォルトプロファイル。

このプロパティは QtWebEngine 1.1 で導入されました。

WebEngineProfileも参照して ください。


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

すべての Web エンジンビューのデフォルト設定。

このプロパティは QtWebEngine 1.1 で導入されました。

WebEngineSettings参照して ください。


メソッドのドキュメント

[since QtWebEngine 6.2] WebEngineScript script()

WebEngineScript WebEngineScriptCollection を使用して、 または のユーザースクリプトのコレクションに挿入することができます。WebEngineView.userScripts WebEngineProfile.userScripts

このメソッドは QtWebEngine 6.2 で導入されました。

WebEngineScript およびWebEngineScriptCollectionも参照してください


© 2025 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.