AbstractProxyModelMixin
Base classes
Name | Children | Inherits |
---|---|---|
AbstractItemModelMixin prettyqt.core.abstractitemmodel |
Subclasses
Class | Module | Description |
---|---|---|
AbstractProxyModel | prettyqt.core.abstractproxymodel | |
IdentityProxyModel | prettyqt.core.identityproxymodel | |
SortFilterProxyModel | prettyqt.core.sortfilterproxymodel | |
TransposeProxyModel | prettyqt.core.transposeproxymodel |
⋔ Inheritance diagram
graph TD
1473299903840["core.AbstractProxyModelMixin"]
1473299890176["core.AbstractItemModelMixin"]
1473299815024["core.ObjectMixin"]
140713234304496["builtins.object"]
1473299890176 --> 1473299903840
1473299815024 --> 1473299890176
140713234304496 --> 1473299815024
🛈 DocStrings
Bases: AbstractItemModelMixin
Source code in prettyqt\core\abstractproxymodel.py
first_item_index() -> core.ModelIndex
Return the first child of the root item.
Source code in prettyqt\core\abstractproxymodel.py
source_index_from_key(key_path: Sequence[tuple[int, int] | int], parent_index: core.ModelIndex | None = None) -> core.ModelIndex
Return a QModelIndex of the sourceModel for the given key.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
key_path |
Sequence[tuple[int, int] | int]
|
Key path to get an index for. Should be a sequence of either (row, column) or row indices |
required |
parent_index |
ModelIndex | None
|
ModelIndex to start indexing from. Defaults to root index. |
None
|