Subgroup: Vector

Class: QgsVectorLayerUndoCommandAddAttribute

class qgis.core.QgsVectorLayerUndoCommandAddAttribute(buffer: QgsVectorLayerEditBuffer, field: QgsField)

Bases: qgis._core.QgsVectorLayerUndoCommand

Constructor for QgsVectorLayerUndoCommandAddAttribute

Parameters:
  • buffer – associated edit buffer
  • field

    definition of new field to add

    Undo command for adding a new attribute to a vector layer.

    Methods

    redo
    undo

    Signals

    Attributes

redo(self)
undo(self)