Class: QgsFeaturePickerModel

Provides a list of features based on filter conditions. Features are fetched asynchronously.

Class Hierarchy

Inheritance diagram of qgis.core.QgsFeaturePickerModel

Base classes

QgsFeaturePickerModelBase

Provides a list of features based on filter conditions.

QAbstractItemModel

QObject

Methods

extraIdentifierValue

feature

Returns the current feature

requestToReloadCurrentFeature

setExtraIdentifierValue

setExtraIdentifierValueToNull

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).

setExtraIdentifierValueUnguarded

setFeature

Set the feature to the given feature id

Signals

featureChanged

Emitted when the current feature changes

class qgis.core.QgsFeaturePickerModel[source]

Bases: QgsFeaturePickerModelBase

__init__(parent: QObject | None = None)

Create a new QgsFeaturePickerModel, optionally specifying a parent.

Parameters:

parent (Optional[QObject] = None)

extraIdentifierValue()
feature(self) QgsFeature[source]

Returns the current feature

Return type:

QgsFeature

signal featureChanged(feature: QgsFeature)[source]

Emitted when the current feature changes

Parameters:

feature (QgsFeature)

requestToReloadCurrentFeature()
setExtraIdentifierValue()
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()
setFeature(self, fid: int)[source]

Set the feature to the given feature id

Parameters:

fid (int)