The QWebEngineScriptCollection class represents a collection of user scripts. More...
Header: | #include <QWebEngineScriptCollection> |
CMake: | find_package(Qt6 COMPONENTS WebEngineCore REQUIRED) target_link_libraries(mytarget PRIVATE Qt6::WebEngineCore) |
qmake: | QT += webenginecore |
Since: | Qt 5.5 |
~QWebEngineScriptCollection() | |
void | clear() |
bool | contains(const QWebEngineScript &value) const |
int | count() const |
QList<QWebEngineScript> | find(const QString &name) const |
void | insert(const QWebEngineScript &s) |
void | insert(const QList<QWebEngineScript> &list) |
bool | isEmpty() const |
bool | remove(const QWebEngineScript &script) |
QList<QWebEngineScript> | toList() const |
QWebEngineScriptCollection manages a set of user scripts.
Use QWebEnginePage::scripts() and QWebEngineProfile::scripts() to access the collection of scripts associated with a single page or a number of pages sharing the same profile.
See also Script Injection.
Destroys the collection.
Removes all scripts from this collection.
Returns true
if the collection contains an occurrence of value; otherwise returns false
.
Returns the number of elements in the collection.
Returns the list of scripts in the collection with the name name, or an empty list if none was found.
Inserts the script s into the collection.
Inserts scripts from the list list into the collection.
Returns true
if the collection is empty; otherwise returns false
.
Removes script from the collection.
Returns true
if the script was found and successfully removed from the collection; otherwise returns false
.
Returns a list with the values of the scripts used in this collection.
© The Qt Company Ltd
Licensed under the GNU Free Documentation License, Version 1.3.
https://doc.qt.io/qt-6.2/qwebenginescriptcollection.html