QGIS API Documentation 3.41.0-Master (45a0abf3bec)
Loading...
Searching...
No Matches
Public Member Functions | List of all members
FromFactoriesPlugin Class Reference

Widget auto conf plugin that guesses what widget type to use in function of what the widgets support. More...

Inheritance diagram for FromFactoriesPlugin:
Inheritance graph
[legend]

Public Member Functions

QgsEditorWidgetSetup editorWidgetSetup (const QgsVectorLayer *vl, const QString &fieldName, int &score) const override
 Typical scores are:
 
- Public Member Functions inherited from QgsEditorWidgetAutoConfPlugin
virtual ~QgsEditorWidgetAutoConfPlugin ()=default
 

Detailed Description

Widget auto conf plugin that guesses what widget type to use in function of what the widgets support.

Note
not available in Python bindings
Since
QGIS 3.0

Definition at line 27 of file qgseditorwidgetautoconf.cpp.

Member Function Documentation

◆ editorWidgetSetup()

QgsEditorWidgetSetup FromFactoriesPlugin::editorWidgetSetup ( const QgsVectorLayer vl,
const QString &  fieldName,
int &  score 
) const
inlineoverridevirtual

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
vlThe vector layer for which this widget will be created
fieldNameThe field name on the specified layer for which this widget will be created
scoreWhere the score is returned (default to 0)
Returns
and integer value rating how good is the setup provided by this plugin.

Implements QgsEditorWidgetAutoConfPlugin.

Definition at line 30 of file qgseditorwidgetautoconf.cpp.


The documentation for this class was generated from the following file: