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 |
Methods
Returns the current filter string, if set. |
|
Sets a filter string, such that only layouts with names containing the specified string will be shown. |
Virtual Methods
In PyQGIS, only methods marked as virtual can be safely overridden in a Python subclass of QgsProjectStoredObjectManagerProxyModelBase. See the FAQ for more details.
Returns |
- 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