Skip to content

JSValueIterator

Qt Base Class: QJSValueIterator

Signature: QJSValueIterator(self, value: Union[PySide6.QtQml.QJSValue, PySide6.QtQml.QJSValue.SpecialValue, bool, str, bytes, float, int]) -> None

Base classes

Name Children Inherits
QJSValueIterator
PySide6.QtQml
QJSValueIterator(self, value: Union[PySide6.QtQml.QJSValue, PySide6.QtQml.QJSValue.SpecialValue, bool, str, bytes, float, int]) -> None

⋔ Inheritance diagram

graph TD
  1473572318896["qml.JSValueIterator"]
  1473572258384["QtQml.QJSValueIterator"]
  1473291690208["Shiboken.Object"]
  140713234304496["builtins.object"]
  1473572258384 --> 1473572318896
  1473291690208 --> 1473572258384
  140713234304496 --> 1473291690208

🛈 DocStrings

Bases: QJSValueIterator

Java-style iterator for JSValue.

Source code in prettyqt\qml\jsvalueiterator.py
class JSValueIterator(QtQml.QJSValueIterator):
    """Java-style iterator for JSValue."""

    def __iter__(self):
        return self

    def __next__(self):
        if self.next():
            return (self.name(), self.value().toVariant())
        raise StopIteration