QGIS API Documentation
3.26.3-Buenos Aires (65e4edfdad)
|
Go to the documentation of this file.
36 if ( !defVal.isNull() && defVal == value )
40 else if ( value.isNull() )
53 Q_UNUSED( fieldIndex )
66 return Qt::AlignRight;
74 Q_UNUSED( fieldIndex )
83 return QList<QgsVectorLayerRef>();
89 Q_UNUSED( countLimit )
92 return QVariantList();
@ OriginProvider
Field comes from the underlying data provider of the vector layer (originIndex = index in provider's ...
QgsVectorDataProvider * dataProvider() FINAL
Returns the layer's data provider, it may be nullptr.
QString displayString(const QVariant &v) const
Formats string for display.
A context for field formatter containing information like the project.
QgsFields fields() const FINAL
Returns the list of fields of this layer.
static QString nullRepresentation()
This string is used to represent the value NULL throughout QGIS.
bool exists(int i) const
Returns if a field index is valid.
FieldOrigin fieldOrigin(int fieldIdx) const
Returns the field's origin (value from an enumeration).
Represents a vector layer which manages a vector based data sets.
int fieldOriginIndex(int fieldIdx) const
Returns the field's origin index (its meaning is specific to each type of origin).
virtual QString defaultValueClause(int fieldIndex) const
Returns any default value clauses which are present at the provider for a specified field index.
QgsField at(int i) const
Returns the field at particular index (must be in range 0..N-1).
Encapsulate a field in an attribute table or data source.