Class: QgsProcessingToolboxModelAlgorithmNode

Processing toolbox model node corresponding to an algorithm.

Warning

Not part of stable API and may change in future QGIS releases.

Added in version 3.4.

Class Hierarchy

Inheritance diagram of qgis.gui.QgsProcessingToolboxModelAlgorithmNode

Base classes

QgsProcessingToolboxModelNode

Abstract base class for nodes contained within a QgsProcessingToolboxModel.

QObject

Methods

algorithm

Returns the algorithm associated with this node.

class qgis.gui.QgsProcessingToolboxModelAlgorithmNode[source]

Bases: QgsProcessingToolboxModelNode

__init__(algorithm: QgsProcessingAlgorithm | None)

Constructor for QgsProcessingToolboxModelAlgorithmNode, associated with the specified algorithm.

Parameters:

algorithm (Optional[QgsProcessingAlgorithm])

algorithm(self) QgsProcessingAlgorithm | None[source]

Returns the algorithm associated with this node.

Return type:

Optional[QgsProcessingAlgorithm]