Class: QgsEditorWidgetSetup

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

List of all members, including inherited members

Constructor

__init__

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