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
pyqtSignal(*types, name: str = ..., revision: int = ..., arguments: Sequence = ...) -> PYQT_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¶
pyqtSignal(*types, name: str = …, revision: int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Parameters:
name (str = ...) –
revision (int = ...) –
arguments (Sequence = ...) –
- Return type:
PYQT_SIGNAL
- 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)¶