このページでは

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]

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

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

WebEngineProfileも参照してください

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

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

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

WebEngineSettingsも参照してください

メソッドのドキュメント

[since QtWebEngine 6.2] webEngineScript script()

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

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

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

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