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 aparent
.Methods
beginInsertColumns
beginInsertRows
beginMoveColumns
beginMoveRows
beginRemoveColumns
beginRemoveRows
changePersistentIndex
createIndex
decodeData
Returns the current feature
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).
Set the feature to the given feature id
Signals
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
- 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)¶