Class: QgsVectorLayerUndoCommandChangeAttribute

Undo command for modifying an attribute of a feature from a vector layer.

Class Hierarchy

Inheritance diagram of qgis.core.QgsVectorLayerUndoCommandChangeAttribute

Base classes

QgsVectorLayerUndoCommand

Base class for undo commands within a QgsVectorLayerEditBuffer.

QUndoCommand

class qgis.core.QgsVectorLayerUndoCommandChangeAttribute[source]

Bases: QgsVectorLayerUndoCommand

__init__(buffer: QgsVectorLayerEditBuffer | None, fid: int, fieldIndex: int, newValue: Any, oldValue: Any)

Constructor for QgsVectorLayerUndoCommandChangeAttribute

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

  • fid (int) – feature ID of feature to modify

  • fieldIndex (int) – index of field to modify

  • newValue (Any) – new value of attribute

  • oldValue (Any) – previous value of attribute