Class: QgsFieldCalculator¶
A dialog class that provides calculation of new fields using existing fields, values and a set of operators
Sample usage of the QgsFieldCalculator
class:
uri = "point?crs=epsg:4326&field=id:integer"
layer = QgsVectorLayer(uri, "Scratch point layer", "memory")
layer.startEditing()
dialog = QgsFieldCalculator(layer)
dialog.exec()

QgsFieldCalculator¶
Class Hierarchy¶
Base classes¶
Methods
Returns the field index of the field for which new attribute values were calculated. |