Class: QgsKeyValueWidget

Widget allowing editing a QVariantMap, using a table.

Class Hierarchy

Inheritance diagram of qgis.gui.QgsKeyValueWidget

Base classes

QgsTableWidgetBase

Base widget allowing editing a collection, using a table.

QWidget

QObject

QPaintDevice

Methods

map

Gets the edit value.

setMap

Set the initial value of the widget.

class qgis.gui.QgsKeyValueWidget[source]

Bases: QgsTableWidgetBase

__init__(parent: QWidget | None = None)

Constructor.

Parameters:

parent (Optional[QWidget] = None)

map(self) Dict[str, Any][source]

Gets the edit value.

Return type:

Dict[str, Any]

Returns:

the QVariantMap

setMap(self, map: Dict[str, Any])[source]

Set the initial value of the widget.

Parameters:

map (Dict[str, Any])