The QWebEngineScriptCollection class represents a collection of user scripts. More...
Header: | #include <QWebEngineScriptCollection> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS WebEngineCore) 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.
As part of the free Business evaluation, we offer a free welcome call for companies, to talk about your requirements, and how the Felgo SDK & Services can help you. Just sign up and schedule your call.
Sign up now to start your free Business evaluation: