21 fields.
append(
QgsField( QStringLiteral(
"type" ), QVariant::String, QStringLiteral(
"String" ) ) );
Container of fields for a vector layer.
bool append(const QgsField &field, FieldOrigin origin=OriginProvider, int originIndex=-1)
Append a field. The field must have unique name, otherwise it is rejected (returns false) ...
Encapsulate a field in an attribute table or data source.
static QgsFields triangulationFields()
Returns the fields output by features when calling saveTriangulation().