TupleTreeModel
Qt Base Class: QAbstractItemModel
Signature: QAbstractItemModel(self, parent: Optional[PySide6.QtCore.QObject] = None) -> None
Base classes
Name | Children | Inherits |
---|---|---|
TreeModel prettyqt.itemmodels.treemodel |
|
⋔ Inheritance diagram
graph TD
1473245464544["itemmodels.TupleTreeModel"]
1473299686192["itemmodels.TreeModel"]
1473299893104["core.AbstractItemModel"]
1473299890176["core.AbstractItemModelMixin"]
1473299815024["core.ObjectMixin"]
140713234304496["builtins.object"]
1473289050128["QtCore.QAbstractItemModel"]
1473288842240["QtCore.QObject"]
1473291690208["Shiboken.Object"]
1473299686192 --> 1473245464544
1473299893104 --> 1473299686192
1473299890176 --> 1473299893104
1473299815024 --> 1473299890176
140713234304496 --> 1473299815024
1473289050128 --> 1473299893104
1473288842240 --> 1473289050128
1473291690208 --> 1473288842240
140713234304496 --> 1473291690208
🛈 DocStrings
Bases: TreeModel
Base Tree Model to display a dict[tuple[Any], str] data structure.
The dictionary keys are tuples of path parts, like ("path", "to", "something")
model = TupleTreeModel({("a"): "test2", ("a", "b"): "test", ("a", "b", "c"): "test3"})
table = widgets.TreeView()
table.set_model(model)
table.show()
Source code in prettyqt\itemmodels\tupletreemodel.py
Info
Supported data type: dict[tuple[collections.abc.Hashable, ...] | pathlib.Path, str]
⌗ Property table
Qt Property | Type | Doc |
---|---|---|
objectName |
QString |