Class: QgsAttributeTypeLoadDialog

A dialog which allows populating value maps using features present in a vector layer.

Class Hierarchy

Inheritance diagram of qgis.gui.QgsAttributeTypeLoadDialog

Base classes

QDialog

QWidget

QObject

QPaintDevice

class qgis.gui.QgsAttributeTypeLoadDialog[source]

Bases: QDialog

virtual accept(self)[source]

Overloaded accept method which will write the feature field values, then delegate to QDialog.accept()

insertNull(self) bool[source]

Returns True if the “Add NULL value” checkbox has been checked.

Return type:

bool

Returns:

True if the “Add NULL value” checkbox has been checked.

setVectorLayer(self, layer: QgsVectorLayer | None)[source]

Sets predefined vector layer for selection of data

Parameters:

layer (Optional[QgsVectorLayer]) – Vector layer which is to be set as predefined one

valueMap(self) Dict[str, Any]

Returns the value map which is currently active.

Return type:

Dict[str, Any]

Returns:

value map of values selected from layer