Class: QgsTrackedVectorLayerTools¶
- class qgis.core.QgsTrackedVectorLayerTools¶
Bases:
QgsVectorLayerTools
Constructor for QgsTrackedVectorLayerTools.
Methods
This method calls the addFeature method of the backend
QgsVectorLayerTools
- param layer:
Delete all features which have been added via this object.
- param layer:
Set the vector layer tools that will be used to interact with the data
- param layer:
- param layer:
- addFeatureV2(self, layer: QgsVectorLayer | None, defaultValues: Dict[int, Any], defaultGeometry: QgsGeometry, context: QgsVectorLayerToolsContext)¶
This method calls the addFeature method of the backend
QgsVectorLayerTools
- Parameters:
layer (Optional[QgsVectorLayer]) – The layer to which the feature should be added
defaultValues (Dict[int) – Default values for the feature to add
defaultGeometry (QgsGeometry) – A default geometry to add to the feature
context (
QgsVectorLayerToolsContext
) -> (bool) – A context object to be used for e.g. to calculate feature expression-based values (since QGIS 3.38)
- Returns:
True
in case of success,False
if the operation failed/was abortedfeature: A pointer to the feature
- childEvent(self, a0: QChildEvent | None)¶
- connectNotify(self, signal: QMetaMethod)¶
- copyMoveFeatures(self, layer: QgsVectorLayer | None, request: QgsFeatureRequest, dx: float = 0, dy: float = 0, errorMsg: str | None | None = '', topologicalEditing: bool = False, topologicalLayer: QgsVectorLayer | None = None, childrenInfoMsg: str | None | None = '') bool ¶
- Parameters:
layer (Optional[QgsVectorLayer])
request (QgsFeatureRequest)
dx (float = 0)
dy (float = 0)
errorMsg (Optional[Optional[str]] = '')
topologicalEditing (bool = False)
topologicalLayer (Optional[QgsVectorLayer] = None)
childrenInfoMsg (Optional[Optional[str]] = '')
- Return type:
bool
- customEvent(self, a0: QEvent | None)¶
- disconnectNotify(self, signal: QMetaMethod)¶
- isSignalConnected(self, signal: QMetaMethod) bool ¶
- receivers(self, signal: PYQT_SIGNAL) int ¶
- rollback(self)¶
Delete all features which have been added via this object.
- saveEdits(self, layer: QgsVectorLayer | None) bool ¶
- Parameters:
layer (Optional[QgsVectorLayer])
- Return type:
bool
- sender(self) QObject | None ¶
- senderSignalIndex(self) int ¶
- setVectorLayerTools(self, tools: QgsVectorLayerTools | None)¶
Set the vector layer tools that will be used to interact with the data
- Parameters:
tools (Optional[QgsVectorLayerTools])
- startEditing(self, layer: QgsVectorLayer | None) bool ¶
- Parameters:
layer (Optional[QgsVectorLayer])
- Return type:
bool
- stopEditing(self, layer: QgsVectorLayer | None, allowCancel: bool) bool ¶
- Parameters:
layer (Optional[QgsVectorLayer])
allowCancel (bool)
- Return type:
bool
- timerEvent(self, a0: QTimerEvent | None)¶