このページでは

WebViewSettings QML Type

ブラウザのプロパティや属性を設定できます。詳細...

Import Statement: import QtWebView
Since: QtWebView 6.5

プロパティ

詳細な説明

WebViewSettings 型を使用すると、JavaScript のサポート、ファイルアクセス、ローカルストレージ機能など、ブラウザのプロパティや汎用的な属性を設定できます。この型は生成できませんが、WebView.settings プロパティを使用することで、すべての Web ビューのデフォルト設定にアクセスできます。

デフォルト値は、各プラットフォームで設定されている値のままとなります。

プロパティのドキュメント

allowFileAccess : bool

WebView でファイルのURLを読み込めるようにします。

javaScriptEnabled : bool

JavaScript プログラムの実行を可能にします。

localContentCanAccessFileUrls : bool

ローカルで読み込まれたドキュメントが、他のローカルURLにアクセスできるようにします。

localStorageEnabled : bool

HTML5のローカルストレージ機能のサポートを有効にします。

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