QWebEngineScriptCollection Class
Die Klasse QWebEngineScriptCollection stellt eine Sammlung von Benutzerskripten dar. Mehr...
Kopfzeile: | #include <QWebEngineScriptCollection> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS WebEngineCore) target_link_libraries(mytarget PRIVATE Qt6::WebEngineCore) |
qmake: | QT += webenginecore |
Öffentliche Funktionen
~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 |
Detaillierte Beschreibung
QWebEngineScriptCollection verwaltet einen Satz von Benutzerskripten.
Verwenden Sie QWebEnginePage::scripts() und QWebEngineProfile::scripts(), um auf die Sammlung von Skripten zuzugreifen, die mit einer einzelnen Seite oder einer Reihe von Seiten mit demselben Profil verbunden sind.
Siehe auch Script Injection.
Dokumentation der Mitgliedsfunktionen
[noexcept]
QWebEngineScriptCollection::~QWebEngineScriptCollection()
Zerstört die Sammlung.
void QWebEngineScriptCollection::clear()
Entfernt alle Skripte aus dieser Sammlung.
bool QWebEngineScriptCollection::contains(const QWebEngineScript &value) const
Gibt true
zurück, wenn die Sammlung ein Vorkommen von value enthält; andernfalls wird false
zurückgegeben.
int QWebEngineScriptCollection::count() const
Gibt die Anzahl der Elemente in der Sammlung zurück.
QList<QWebEngineScript> QWebEngineScriptCollection::find(const QString &name) const
Gibt die Liste der Skripte in der Sammlung mit dem Namen name zurück, oder eine leere Liste, wenn keine gefunden wurde.
void QWebEngineScriptCollection::insert(const QList<QWebEngineScript> &list)
Fügt Skripte aus der Liste list in die Sammlung ein.
void QWebEngineScriptCollection::insert(const QWebEngineScript &s)
Fügt das Skript s in die Sammlung ein.
bool QWebEngineScriptCollection::isEmpty() const
Gibt true
zurück, wenn die Sammlung leer ist; andernfalls wird false
zurückgegeben.
bool QWebEngineScriptCollection::remove(const QWebEngineScript &script)
Entfernt script aus der Sammlung.
Gibt true
zurück, wenn das Skript gefunden und erfolgreich aus der Sammlung entfernt wurde; andernfalls wird false
zurückgegeben.
QList<QWebEngineScript> QWebEngineScriptCollection::toList() const
Gibt eine Liste mit den Werten der in dieser Sammlung verwendeten Skripte zurück.
© 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.