Class: QgsListWidget

Widget allowing editing a QVariantList, using a table.

Class Hierarchy

Inheritance diagram of qgis.gui.QgsListWidget

Base classes

QgsTableWidgetBase

Base widget allowing editing a collection, using a table.

QWidget

QObject

QPaintDevice

Methods

list

Gets the edit value.

setList

Set the initial value of the widget.

valid

Check the content is valid

class qgis.gui.QgsListWidget[source]

Bases: QgsTableWidgetBase

__init__(subType: QMetaType.Type, parent: QWidget | None = None)

Constructor.

Parameters:
  • subType (QMetaType.Type)

  • parent (Optional[QWidget] = None)

list(self) List[Any][source]

Gets the edit value.

Return type:

List[Any]

Returns:

the QVariantList

setList(self, list: Iterable[Any])[source]

Set the initial value of the widget.

Parameters:

list (Iterable[Any])

valid(self) bool[source]

Check the content is valid

Return type:

bool

Returns:

True if valid