QGIS API Documentation
3.16.0-Hannover (43b64b13f3)
|
Go to the documentation of this file.
35 for ( QMap<QString, QgsEditorWidgetFactory *>::const_iterator i = factories.begin(); i != factories.end(); ++i )
40 const int score = i.value()->fieldScore( vl, index );
41 if ( score > bestScore )
84 QgsEditorWidgetAutoConf::QgsEditorWidgetAutoConf()
95 if ( fieldIndex >= 0 )
110 for (
const std::shared_ptr<QgsEditorWidgetAutoConfPlugin> &cur : mPlugins )
114 if ( score > bestScore )
127 mPlugins.append( std::shared_ptr<QgsEditorWidgetAutoConfPlugin>( plugin ) );
@ OriginProvider
Field comes from the underlying data provider of the vector layer (originIndex = index in provider's ...
static QgsEditorWidgetRegistry * editorWidgetRegistry()
Returns the global editor widget registry, used for managing all known edit widget factories.
QgsFields fields() const FINAL
Returns the list of fields of this layer.
FieldOrigin fieldOrigin(int fieldIdx) const
Gets field's origin (value from an enumeration)
QgsField field(int fieldIdx) const
Gets field at particular index (must be in range 0..N-1)
QgsEditorWidgetSetup editorWidgetSetup(const QgsVectorLayer *vl, const QString &fieldName, int &score) const override
Typical scores are:
QgsEditorWidgetSetup editorWidgetSetup(const QgsVectorLayer *vl, const QString &fieldName, int &score) const override
Typical scores are:
Represents a vector layer which manages a vector based data sets.
QgsVectorDataProvider * dataProvider() FINAL
Returns the layer's data provider, it may be nullptr.
int fieldOriginIndex(int fieldIdx) const
Gets 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.
Widget auto conf plugin that reads the widget setup to use from what the data provider says.
int lookupField(const QString &fieldName) const
Looks up field's index from the field name.
QgsEditorWidgetSetup editorWidgetSetup() const
Gets the editor widget setup for the field.
int indexFromName(const QString &fieldName) const
Gets the field index from the field name.
Widget auto conf plugin that guesses what widget type to use in function of what the widgets support.
Encapsulate a field in an attribute table or data source.