Class: QgsAttributeTypeLoadDialog¶
A dialog which allows populating value maps using features present in a vector layer.
Class Hierarchy¶
Base classes¶
Methods
Returns |
|
Sets predefined vector layer for selection of data |
|
Returns the value map which is currently active. |
Virtual Methods
In PyQGIS, only methods marked as virtual
can be safely overridden in a Python subclass of QgsAttributeTypeLoadDialog. See the FAQ for more details.
Overloaded accept method which will write the feature field values, then delegate to QDialog.accept() |
- 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