Class: QgsFeaturePickerModel

class qgis.core.QgsFeaturePickerModel(parent: QObject = None)

Bases: QgsFeaturePickerModelBase

Create a new QgsFeaturePickerModel, optionally specifying a parent.

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

Methods

beginInsertColumns

beginInsertRows

beginMoveColumns

beginMoveRows

beginRemoveColumns

beginRemoveRows

beginResetModel

changePersistentIndex

changePersistentIndexList

childEvent

connectNotify

createIndex

customEvent

decodeData

disconnectNotify

encodeData

endInsertColumns

endInsertRows

endMoveColumns

endMoveRows

endRemoveColumns

endRemoveRows

endResetModel

extraIdentifierValue

feature

Returns the current feature

isSignalConnected

persistentIndexList

receivers

requestToReloadCurrentFeature

resetInternalData

sender

senderSignalIndex

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

timerEvent

Signals

featureChanged

Emitted when the current feature changes [signal]

QgsFeaturePickerModel.beginInsertColumns(self, QModelIndex, int, int)
QgsFeaturePickerModel.beginInsertRows(self, QModelIndex, int, int)
QgsFeaturePickerModel.beginMoveColumns(self, QModelIndex, int, int, QModelIndex, int) -> bool
QgsFeaturePickerModel.beginMoveRows(self, QModelIndex, int, int, QModelIndex, int) -> bool
QgsFeaturePickerModel.beginRemoveColumns(self, QModelIndex, int, int)
QgsFeaturePickerModel.beginRemoveRows(self, QModelIndex, int, int)
beginResetModel(self)
QgsFeaturePickerModel.changePersistentIndex(self, QModelIndex, QModelIndex)
changePersistentIndexList(self, Iterable[QModelIndex], Iterable[QModelIndex])
childEvent(self, QChildEvent)
connectNotify(self, QMetaMethod)
QgsFeaturePickerModel.createIndex(self, int, int, object: object = 0) -> QModelIndex
customEvent(self, QEvent)
QgsFeaturePickerModel.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()
feature(self)QgsFeature

Returns the current feature

Return type

QgsFeature

featureChanged

Emitted when the current feature changes [signal]

Parameters

feature (QgsFeature) –

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()
setFeature(self, fid: int)

Set the feature to the given feature id

Parameters

fid (int) –

timerEvent(self, QTimerEvent)