Class: QgsAttributeEditorAction¶
This element will load a layer action onto the form.
Added in version 3.22.
Class Hierarchy¶
Base classes¶
This is an abstract base class for any elements of a drag and drop form.  | 
Methods
Returns the (possibly lazy loaded) action for the given layer.  | 
|
Set the action to newAction.  | 
- class qgis.core.QgsAttributeEditorAction[source]¶
 Bases:
QgsAttributeEditorElement- __init__(action: QgsAction, parent: QgsAttributeEditorElement | None)
 Creates a new element which can display a layer action.
- Parameters:
 action (QgsAction) – The action
parent (Optional[QgsAttributeEditorElement]) – The parent (used as container)
- __init__(uuid: QUuid, parent: QgsAttributeEditorElement | None)
 Creates a new element which can display a layer action, this constructor allows to create a QgsAttributeEditorAction when actions are not yet loaded.
- Parameters:
 uuid (QUuid) – The action unique identifier (UUID).
parent (Optional[QgsAttributeEditorElement]) – The parent (used as container).
- __init__(a0: QgsAttributeEditorAction)
 - Parameters:
 
- action(self, layer: QgsVectorLayer | None) QgsAction¶
 Returns the (possibly lazy loaded) action for the given
layer.- Parameters:
 layer (Optional[QgsVectorLayer])
- Return type: