Class: QgsEditorWidgetSetup

Holder for the widget type and its configuration for a field.

Methods

config

isNull

type

class qgis.core.QgsEditorWidgetSetup[source]

Bases: object

__init__(type: str | None, config: Dict[str, Any])

Constructor

Parameters:
  • type (Optional[str])

  • config (Dict[str, Any])

__init__()
__init__(a0: QgsEditorWidgetSetup)
Parameters:

a0 (QgsEditorWidgetSetup)

config(self) Dict[str, Any][source]
Return type:

Dict[str, Any]

Returns:

the widget configuration to used

isNull(self) bool[source]
Return type:

bool

Returns:

True if there is no widget configured.

type(self) str[source]
Return type:

str

Returns:

the widget type to use