Class: QgsFeatureFilterModel¶
Provides a list of features based on filter conditions.
Features are fetched asynchronously.
Class Hierarchy¶
Base classes¶
Provides a list of features based on filter conditions. |
|
Abstract Methods
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). |
Methods
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. |
|
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. |
- class qgis.core.QgsFeatureFilterModel[source]¶
Bases:
QgsFeaturePickerModelBase
- __init__(parent: QObject | None = None)
Create a new QgsFeatureFilterModel, optionally specifying a
parent
.- Parameters:
parent (Optional[QObject] = None)
- extraIdentifierValue()¶
- extraIdentifierValues(self) List[Any] [source]¶
Allows specifying one value that does not need to match the filter criteria but will still be available in the model.
Added in version 3.10.
- Return type:
List[Any]
- signal extraIdentifierValuesChanged[source]¶
Allows specifying one value that does not need to match the filter criteria but will still be available in the model.
- identifierField(self) str [source]¶
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 3.10: Use
identifierFields()
instead.- Return type:
str
- identifierFields(self) List[str] [source]¶
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.
Added in version 3.10.
- Return type:
List[str]
- signal identifierFieldsChanged[source]¶
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.
- setExtraIdentifierValue()¶
- abstract setExtraIdentifierValueToNull(self)[source]¶
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).
Added in version 3.10.
- setExtraIdentifierValueUnguarded()¶
- setExtraIdentifierValues(self, extraIdentifierValues: Iterable[Any])[source]¶
Allows specifying one value that does not need to match the filter criteria but will still be available in the model.
Added in version 3.10.
- Parameters:
extraIdentifierValues (Iterable[Any])
- setIdentifierFields(self, identifierFields: Iterable[str | None])[source]¶
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
Added in version 3.10.
- Parameters:
identifierFields (Iterable[Optional[str]])