Class: QgsProcessingToolboxAction¶
A custom action to show in the Processing toolbox.
Added in version 4.4.
List of all members, including inherited members
Constructor
Methods
Returns the action's (translated, user visible) name. |
|
Returns the parent toolbox widget the action will be shown in. |
|
Returns the action's (translated, user visible) group name. |
|
Sets the action's (translated, user visible) name. |
|
Sets the parent toolbox widget the action will be shown in. |
|
Sets the action's (translated, user visible) group name. |
Virtual Methods
In PyQGIS, only methods marked as virtual can be safely overridden in a Python subclass of QgsProcessingToolboxAction. See the FAQ for more details.
Executes the action. |
|
Returns the icon to use for the action. |
|
Returns the icon to use for the action. |
|
Triggers the action. |
- class qgis.gui.QgsProcessingToolboxAction[source]¶
Bases:
object- __init__(name: str | None = '', group: str | None = '')¶
Constructor for QgsProcessingToolboxAction.
- Parameters:
name (str|None = '')
group (str|None = '')
- __init__(a0: QgsProcessingToolboxAction)
- Parameters:
- actionName(self) str[source]¶
Returns the action’s (translated, user visible) name.
- Return type:
str
- data(self) QgsDockWidget | None[source]¶
Returns the parent toolbox widget the action will be shown in.
Deprecated since version 4.4.
- Return type:
QgsDockWidget|None
- virtual execute(self)[source]¶
Executes the action.
Deprecated since version 4.4: Use
trigger()instead.
- virtual getIcon(self) QIcon[source]¶
Returns the icon to use for the action.
Deprecated since version 4.4: Use
icon()instead.- Return type:
QIcon
- property group¶
Returns the action’s (translated, user visible) group name.
- Return type:
str
- groupName(self) str[source]¶
Returns the action’s (translated, user visible) group name.
- Return type:
str
- setActionName(self, name: str | None)[source]¶
Sets the action’s (translated, user visible) name.
Deprecated since version 4.4: Use the constructor setter instead.
- Parameters:
name (str|None)
- setData(self, widget: QgsDockWidget | None)[source]¶
Sets the parent toolbox widget the action will be shown in.
Deprecated since version 4.4.
- Parameters:
widget (QgsDockWidget|None)
- setGroupName(self, group: str | None)[source]¶
Sets the action’s (translated, user visible) group name.
Deprecated since version 4.4: Use the constructor setter instead.
- Parameters:
group (str|None)
- property toolbox¶
Returns the parent toolbox widget the action will be shown in.
Deprecated since version 4.4.
- Return type:
QgsDockWidget|None
- virtual trigger(self, context: QgsProcessingActionContext)[source]¶
Triggers the action.
- Parameters:
context (QgsProcessingActionContext)