FromFactoriesPlugin class
Widget auto conf plugin that guesses what widget type to use in function of what the widgets support.
Contents
- Reference
Base classes
- class QgsEditorWidgetAutoConfPlugin
- Base class for plugins allowing to pick automatically a widget type for editing fields.
Public functions
- auto editorWidgetSetup(const QgsVectorLayer* vl, const QString& fieldName, int& score) const -> QgsEditorWidgetSetup override
- Typical scores are:
Function documentation
QgsEditorWidgetSetup FromFactoriesPlugin:: editorWidgetSetup(const QgsVectorLayer* vl,
const QString& fieldName,
int& score) const override
Typical scores are:
| Parameters | |
|---|---|
| vl | The vector layer for which this widget will be created |
| fieldName | The field name on the specified layer for which this widget will be created |
| score | Where the score is returned (default to 0) |
| Returns | and integer value rating how good is the setup provided by this plugin. |
- 0: no matching type found.
- 10: a widget has been guessed from the type of field.
- 20: a widget has been determined from an external configuration (for example a database table)