#include <qgseditorwidgetautoconf.h>
Base class for plugins allowing to pick automatically a widget type for editing fields.
- Since
- QGIS 3.0
Definition at line 32 of file qgseditorwidgetautoconf.h.
◆ ~QgsEditorWidgetAutoConfPlugin()
virtual QgsEditorWidgetAutoConfPlugin::~QgsEditorWidgetAutoConfPlugin |
( |
| ) |
|
|
virtualdefault |
◆ editorWidgetSetup()
Typical scores are:
- 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)
- 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.
Implemented in FromDbTablePlugin, and FromFactoriesPlugin.
The documentation for this class was generated from the following file: