Class: QgsVectorLayerUndoCommandDeleteFeature

Undo command for deleting a feature from a vector layer.

Class Hierarchy

Inheritance diagram of qgis.core.QgsVectorLayerUndoCommandDeleteFeature

Base classes

QgsVectorLayerUndoCommand

Base class for undo commands within a QgsVectorLayerEditBuffer.

QUndoCommand

class qgis.core.QgsVectorLayerUndoCommandDeleteFeature[source]

Bases: QgsVectorLayerUndoCommand

__init__(buffer: QgsVectorLayerEditBuffer | None, fid: int)

Constructor for QgsVectorLayerUndoCommandDeleteFeature

Parameters:
  • buffer (Optional[QgsVectorLayerEditBuffer]) – associated edit buffer

  • fid (int) – feature ID of feature to delete from layer