TreeWidgetItemIterator
Qt Base Class: QTreeWidgetItemIterator
Signature: QTreeWidgetItemIterator(self, it: Union[PySide6.QtWidgets.QTreeWidgetItemIterator, PySide6.QtWidgets.QTreeWidget, PySide6.QtWidgets.QTreeWidgetItem]) -> None
QTreeWidgetItemIterator(self, item: PySide6.QtWidgets.QTreeWidgetItem, flags: PySide6.QtWidgets.QTreeWidgetItemIterator.IteratorFlag = Instance(PySide6.QtWidgets.QTreeWidgetItemIterator.IteratorFlag.All)) -> None
QTreeWidgetItemIterator(self, widget: PySide6.QtWidgets.QTreeWidget, flags: PySide6.QtWidgets.QTreeWidgetItemIterator.IteratorFlag = Instance(PySide6.QtWidgets.QTreeWidgetItemIterator.IteratorFlag.All)) -> None
Base classes
Name |
Children |
Inherits |
QTreeWidgetItemIterator PySide6.QtWidgets QTreeWidgetItemIterator(self, it: Union[PySide6.QtWidgets.QTreeWidgetItemIterator, PySide6.QtWidgets.QTreeWidget, PySide6.QtWidgets.QTreeWidgetItem]) -> None |
|
|
⋔ Inheritance diagram
graph TD
1473296349584["widgets.TreeWidgetItemIterator"]
1473290765744["QtWidgets.QTreeWidgetItemIterator"]
1473291690208["Shiboken.Object"]
140713234304496["builtins.object"]
1473290765744 --> 1473296349584
1473291690208 --> 1473290765744
140713234304496 --> 1473291690208
🛈 DocStrings
Bases: QTreeWidgetItemIterator
Source code in prettyqt\widgets\treewidgetitemiterator.py
| class TreeWidgetItemIterator(QtWidgets.QTreeWidgetItemIterator):
def __init__(
self,
other: (
QtWidgets.QTreeWidget
| QtWidgets.QTreeWidgetItem
| QtWidgets.QTreeWidgetItemIterator
),
flags: QtWidgets.QTreeWidgetItemIterator.IteratorFlag | None = None,
hidden: bool | None = None,
selected: bool | None = None,
selectable: bool | None = None,
draggable: bool | None = None,
droppable: bool | None = None,
has_children: bool | None = None,
checked: bool | None = None,
enabled: bool | None = None,
editable: bool | None = None,
user_flag: bool = False,
):
if isinstance(other, QtWidgets.QTreeWidgetItemIterator):
super().__init__(other)
else:
if flags is None:
flags = mod.IteratorFlag.All # type: ignore
if hidden is True:
flags |= mod.IteratorFlag.Hidden # type: ignore
elif hidden is False:
flags |= mod.IteratorFlag.NotHidden # type: ignore
if selected is True:
flags |= mod.IteratorFlag.Selected # type: ignore
elif selected is False:
flags |= mod.IteratorFlag.Unselected # type: ignore
if selectable is True:
flags |= mod.IteratorFlag.Selectable # type: ignore
elif selectable is False:
flags |= mod.IteratorFlag.NotSelectable # type: ignore
if draggable is True:
flags |= mod.IteratorFlag.DragEnabled # type: ignore
elif draggable is False:
flags |= mod.IteratorFlag.DragDisabled # type: ignore
if droppable is True:
flags |= mod.IteratorFlag.DropEnabled # type: ignore
elif droppable is False:
flags |= mod.IteratorFlag.DropDisabled # type: ignore
if has_children is True:
flags |= mod.IteratorFlag.HasChildren # type: ignore
elif has_children is False:
flags |= mod.IteratorFlag.NoChildren # type: ignore
if checked is True:
flags |= mod.IteratorFlag.Checked # type: ignore
elif checked is False:
flags |= mod.IteratorFlag.NotChecked # type: ignore
if enabled is True:
flags |= mod.IteratorFlag.Enabled # type: ignore
elif enabled is False:
flags |= mod.IteratorFlag.Disabled # type: ignore
if editable is True:
flags |= mod.IteratorFlag.Editable # type: ignore
elif editable is False:
flags |= mod.IteratorFlag.NotEditable # type: ignore
if user_flag:
flags |= mod.IteratorFlag.UserFlag # type: ignore
super().__init__(other, flags) # type: ignore
|