QWebEngineScriptCollection¶
The
QWebEngineScriptCollection
class represents a collection of user scripts. More…
Synopsis¶
Detailed Description¶
-
PySide2.QtWebEngineWidgets.QWebEngineScriptCollection.
clear
()¶ Removes all scripts from this collection.
-
PySide2.QtWebEngineWidgets.QWebEngineScriptCollection.
contains
(value)¶ - Parameters
value –
QWebEngineScript
- Return type
bool
Returns
true
if the collection contains an occurrence ofvalue
; otherwise returnsfalse
.
-
PySide2.QtWebEngineWidgets.QWebEngineScriptCollection.
count
()¶ - Return type
int
Returns the number of elements in the collection.
-
PySide2.QtWebEngineWidgets.QWebEngineScriptCollection.
findScript
(name)¶ - Parameters
name – unicode
- Return type
Returns the first script found in the collection with the name
name
, or a nullQWebEngineScript
if none was found.Note
The order in which the script collection is traversed is undefined, which means this should be used when the unicity is guaranteed at the application level.
See also
-
PySide2.QtWebEngineWidgets.QWebEngineScriptCollection.
findScripts
(name)¶ - Parameters
name – unicode
- Return type
Returns the list of scripts in the collection with the name
name
, or an empty list if none was found.
-
PySide2.QtWebEngineWidgets.QWebEngineScriptCollection.
insert
(list)¶ - Parameters
list –
-
PySide2.QtWebEngineWidgets.QWebEngineScriptCollection.
insert
(arg__1) - Parameters
arg__1 –
QWebEngineScript
-
PySide2.QtWebEngineWidgets.QWebEngineScriptCollection.
isEmpty
()¶ - Return type
bool
Returns
true
if the collection is empty; otherwise returnsfalse
.
-
PySide2.QtWebEngineWidgets.QWebEngineScriptCollection.
remove
(arg__1)¶ - Parameters
arg__1 –
QWebEngineScript
- Return type
bool
Removes
script
from the collection.Returns
true
if the script was found and successfully removed from the collection; otherwise returnsfalse
.
-
PySide2.QtWebEngineWidgets.QWebEngineScriptCollection.
size
()¶ - Return type
int
Returns the number of elements in the collection.
-
PySide2.QtWebEngineWidgets.QWebEngineScriptCollection.
toList
()¶ - Return type
Returns a list with the values of the scripts used in this collection.
© 2018 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.