Class: QgsFeatureFilterModel¶
- class qgis.core.QgsFeatureFilterModel¶
Bases:
QgsFeaturePickerModelBase
Provides a list of features based on filter conditions. Features are fetched asynchronously.
New in version 3.0.
QgsFeatureFilterModel(parent: QObject = None) Create a new
QgsFeatureFilterModel
, optionally specifying aparent
.Methods
beginInsertColumns
beginInsertRows
beginMoveColumns
beginMoveRows
beginRemoveColumns
beginRemoveRows
changePersistentIndex
createIndex
decodeData
Allows specifying one value that does not need to match the filter criteria but will still be available in the model.
The identifier field should be a unique field that can be used to identify individual features.
The identifier field should be a unique field that can be used to identify individual features.
Allows specifying one value that does not need to match the filter criteria but will still be available in the model as NULL value(s).
Allows specifying one value that does not need to match the filter criteria but will still be available in the model.
The identifier field should be a unique field that can be used to identify individual features.
Signals
Allows specifying one value that does not need to match the filter criteria but will still be available in the model.
The identifier field should be a unique field that can be used to identify individual features.
- QgsFeatureFilterModel.beginInsertColumns(self, QModelIndex, int, int)
- QgsFeatureFilterModel.beginInsertRows(self, QModelIndex, int, int)
- QgsFeatureFilterModel.beginMoveColumns(self, QModelIndex, int, int, QModelIndex, int) -> bool
- QgsFeatureFilterModel.beginMoveRows(self, QModelIndex, int, int, QModelIndex, int) -> bool
- QgsFeatureFilterModel.beginRemoveColumns(self, QModelIndex, int, int)
- QgsFeatureFilterModel.beginRemoveRows(self, QModelIndex, int, int)
- beginResetModel(self)¶
- QgsFeatureFilterModel.changePersistentIndex(self, QModelIndex, QModelIndex)
- changePersistentIndexList(self, Iterable[QModelIndex], Iterable[QModelIndex])¶
- childEvent(self, QChildEvent)¶
- connectNotify(self, QMetaMethod)¶
- QgsFeatureFilterModel.createIndex(self, int, int, object: object = 0) -> QModelIndex
- customEvent(self, QEvent)¶
- QgsFeatureFilterModel.decodeData(self, int, int, QModelIndex, QDataStream) -> bool
- disconnectNotify(self, QMetaMethod)¶
- encodeData(self, Iterable[QModelIndex], QDataStream)¶
- endInsertColumns(self)¶
- endInsertRows(self)¶
- endMoveColumns(self)¶
- endMoveRows(self)¶
- endRemoveColumns(self)¶
- endRemoveRows(self)¶
- endResetModel(self)¶
- extraIdentifierValue()¶
- extraIdentifierValues(self) List[Any] ¶
Allows specifying one value that does not need to match the filter criteria but will still be available in the model.
New in version 3.10.
- Return type
List[Any]
- extraIdentifierValuesChanged¶
Allows specifying one value that does not need to match the filter criteria but will still be available in the model. [signal]
- identifierField(self) str ¶
The identifier field should be a unique field that can be used to identify individual features. It is normally set to the primary key of the layer. If there are several identifier fields defined, the behavior is not guaranteed
Deprecated since version QGIS: 3.10 use identifierFields instead
- Return type
str
- identifierFields(self) List[str] ¶
The identifier field should be a unique field that can be used to identify individual features. It is normally set to the primary key of the layer.
New in version 3.10.
- Return type
List[str]
- identifierFieldsChanged¶
The identifier field should be a unique field that can be used to identify individual features. It is normally set to the primary key of the layer. [signal]
- isSignalConnected(self, QMetaMethod) bool ¶
- persistentIndexList(self) List[QModelIndex] ¶
- receivers(self, PYQT_SIGNAL) int ¶
- requestToReloadCurrentFeature()¶
- resetInternalData(self)¶
- sender(self) QObject ¶
- senderSignalIndex(self) int ¶
- setExtraIdentifierValue()¶
- setExtraIdentifierValueToNull(self)¶
Allows specifying one value that does not need to match the filter criteria but will still be available in the model as NULL value(s).
New in version 3.10.
- setExtraIdentifierValueUnguarded()¶
- setExtraIdentifierValues(self, extraIdentifierValues: Iterable[Any])¶
Allows specifying one value that does not need to match the filter criteria but will still be available in the model.
New in version 3.10.
- Parameters
extraIdentifierValues (Iterable[Any]) –
- setIdentifierFields(self, identifierFields: Iterable[str])¶
The identifier field should be a unique field that can be used to identify individual features. It is normally set to the primary key of the layer.
Note
This will also reset identifier fields to NULL
New in version 3.10.
- Parameters
identifierFields (Iterable[str]) –
- timerEvent(self, QTimerEvent)¶