WebViewSettings QML Type

ブラウザのプロパティと属性を設定できるようにします。詳細...

Import Statement: import QtWebView
Since: QtWebView 6.5

プロパティ

詳細説明

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

デフォルト値は、異なるプラットフォームによって設定されたままになっています。

プロパティ Documentation

allowFileAccess : bool

WebView がファイル URL をロードできるようにします。


javaScriptEnabled : bool

JavaScriptプログラムの実行を有効にします。


localContentCanAccessFileUrls : bool

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


localStorageEnabled : bool

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


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