Class: QgsEditorWidgetSetup

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

Methods

config

Returns the widget configuration.

isNull

Returns True if there is no widget configured.

type

Returns the widget type to use.

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]

Returns the widget configuration.

Return type:

Dict[str, Any]

isNull(self) bool[source]

Returns True if there is no widget configured.

Return type:

bool

type(self) str[source]

Returns the widget type to use.

Return type:

str