Class: QgsAttributeTypeLoadDialog

Class Hierarchy

Inheritance diagram of qgis.gui.QgsAttributeTypeLoadDialog

Base classes

QDialog

QWidget

QObject

QPaintDevice

Methods

accept

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

insertNull

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

setVectorLayer

Sets predefined vector layer for selection of data

valueMap

Returns the value map which is currently active.

class qgis.gui.QgsAttributeTypeLoadDialog(vl: QgsVectorLayer | None)[source]

Bases: QDialog

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