|
QGIS API Documentation 4.1.0-Master (009143bf4b4)
|
A dialog that provides calculation of new fields using existing fields, values and a set of operators. More...
#include <qgsfieldcalculator.h>

Public Slots | |
| void | accept () override |
Public Member Functions | |
| QgsFieldCalculator (QgsVectorLayer *vl, QWidget *parent=nullptr, int fieldIndex=-1) | |
| Constructor for QgsFieldCalculator, with the specified parent widget. | |
| int | changedAttributeId () const |
| Returns the field index of the field for which new attribute values were calculated. | |
Friends | |
| class | TestQgsFieldCalculator |
A dialog that provides calculation of new fields using existing fields, values and a set of operators.
Sample usage of the QgsFieldCalculator class:
Definition at line 44 of file qgsfieldcalculator.h.
| QgsFieldCalculator::QgsFieldCalculator | ( | QgsVectorLayer * | vl, |
| QWidget * | parent = nullptr, | ||
| int | fieldIndex = -1 ) |
Constructor for QgsFieldCalculator, with the specified parent widget.
The target layer must be specified using the vl argument.
Since QGIS 4.2, the optional fieldIndex argument can be used to automatically select the existing field with the specified index in the dialog.
Definition at line 51 of file qgsfieldcalculator.cpp.
|
overrideslot |
Definition at line 180 of file qgsfieldcalculator.cpp.
|
inline |
Returns the field index of the field for which new attribute values were calculated.
Definition at line 63 of file qgsfieldcalculator.h.
|
friend |
Definition at line 105 of file qgsfieldcalculator.h.