Class: QgsProjectStoredObjectManagerProxyModelBase¶
Base class QSortFilterProxyModel subclass for
QgsProjectStoredObjectManagerModel.
Supports sorting by object name and text based filtering against the object name.
Added in version 4.0.
Class Hierarchy¶
Base classes¶
Subclasses¶
QSortFilterProxyModel subclass for |
|
QSortFilterProxyModel subclass for |
- class qgis.core.QgsProjectStoredObjectManagerProxyModelBase[source]¶
Bases:
QSortFilterProxyModel- __init__(parent: QObject | None = None)
Constructor for QgsProjectStoredObjectManagerProxyModelBase.
- Parameters:
parent (Optional[QObject] = None)
- virtual filterAcceptsRowInternal(self, sourceRow: int, sourceParent: QModelIndex) bool[source]¶
Returns
Trueif the proxy accepts the matching source row.Handles filtering based on object name.
Subclasses should override this method instead of
filterAcceptsRow().- Parameters:
sourceRow (int)
sourceParent (QModelIndex)
- Return type:
bool
- filterString(self) str[source]¶
Returns the current filter string, if set.
See also
- Return type:
str