Class: QgsVectorLayerUndoCommandAddAttribute¶
Undo command for adding a new attribute to a vector layer.
Class Hierarchy¶
Base classes¶
Base class for undo commands within a   | 
|
- class qgis.core.QgsVectorLayerUndoCommandAddAttribute[source]¶
 Bases:
QgsVectorLayerUndoCommand- __init__(buffer: QgsVectorLayerEditBuffer | None, field: QgsField)
 Constructor for QgsVectorLayerUndoCommandAddAttribute
- Parameters:
 buffer (Optional[QgsVectorLayerEditBuffer]) – associated edit buffer
field (QgsField) – definition of new field to add