Class: QgsFeaturePickerModel

class qgis.core.QgsFeaturePickerModel

Bases: QgsFeaturePickerModelBase

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

New in version 3.0.

QgsFeaturePickerModel(parent: QObject = None) Create a new QgsFeaturePickerModel, optionally specifying a parent.

Methods

beginInsertColumns

beginInsertRows

beginMoveColumns

beginMoveRows

beginRemoveColumns

beginRemoveRows

beginResetModel

changePersistentIndex

changePersistentIndexList

childEvent

connectNotify

createIndex

customEvent

decodeData

disconnectNotify

encodeData

endInsertColumns

endInsertRows

endMoveColumns

endMoveRows

endRemoveColumns

endRemoveRows

endResetModel

feature

Returns the current feature

isSignalConnected

persistentIndexList

receivers

resetInternalData

sender

senderSignalIndex

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

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)
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
resetInternalData(self)
sender(self) QObject
senderSignalIndex(self) int
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.

setFeature(self, fid: int)

Set the feature to the given feature id

Parameters

fid (int) –

timerEvent(self, QTimerEvent)