QWebEngineScriptCollection Class
QWebEngineScriptCollection クラスは、ユーザースクリプトのコレクションを表します。詳細...
ヘッダー | #include <QWebEngineScriptCollection> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS WebEngineCore) target_link_libraries(mytarget PRIVATE Qt6::WebEngineCore) |
qmake: | QT += webenginecore |
パブリック関数
~QWebEngineScriptCollection() | |
void | clear() |
bool | contains(const QWebEngineScript &value) const |
int | count() const |
QList<QWebEngineScript> | find(const QString &name) const |
void | insert(const QList<QWebEngineScript> &list) |
void | insert(const QWebEngineScript &s) |
bool | isEmpty() const |
bool | remove(const QWebEngineScript &script) |
QList<QWebEngineScript> | toList() const |
詳細説明
QWebEngineScriptCollection はユーザースクリプトのセットを管理します。
QWebEnginePage::scripts() およびQWebEngineProfile::scripts() を使用して、単一のページまたは同じプロファイルを共有する複数のページに関連付けられたスクリプトのコレクションにアクセスします。
スクリプト・インジェクションも参照してください 。
メンバ関数のドキュメント
[noexcept]
QWebEngineScriptCollection::~QWebEngineScriptCollection()
コレクションを破壊する。
void QWebEngineScriptCollection::clear()
このコレクションからすべてのスクリプトを削除します。
bool QWebEngineScriptCollection::contains(const QWebEngineScript &value) const
コレクションにvalue が含まれる場合はtrue
を返し、そうでない場合はfalse
を返す。
int QWebEngineScriptCollection::count() const
コレクション内の要素数を返します。
QList<QWebEngineScript> QWebEngineScriptCollection::find(const QString &name) const
コレクション内のスクリプトのうち、name という名前のスクリプトのリストを返します。
void QWebEngineScriptCollection::insert(const QList<QWebEngineScript> &list)
スクリプトをリストlist からコレクションに挿入します。
void QWebEngineScriptCollection::insert(const QWebEngineScript &s)
スクリプトs をコレクションに挿入します。
bool QWebEngineScriptCollection::isEmpty() const
コレクションが空の場合はtrue
を返し、そうでない場合はfalse
を返す。
bool QWebEngineScriptCollection::remove(const QWebEngineScript &script)
コレクションからscript を削除する。
スクリプトが見つかり、コレクションから正常に削除された場合はtrue
を返し、そうでない場合はfalse
を返します。
QList<QWebEngineScript> QWebEngineScriptCollection::toList() const
このコレクションで使用されているスクリプトの値を含むリストを返します。
© 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.