Class: QgsModelChildAlgorithmGraphicItem

A graphic item representing a child algorithm in the model designer.

Warning

Not stable API

Added in version 3.14.

Class Hierarchy

Inheritance diagram of qgis.gui.QgsModelChildAlgorithmGraphicItem

Base classes

QgsModelComponentGraphicItem

Base class for graphic items representing model components in the model designer.

QGraphicsObject

QObject

QGraphicsItem

Methods

setResults

Sets the results obtained for this child algorithm for the last model execution through the dialog.

Signals

runFromHere

Emitted when the user opts to run the model from this child algorithm.

runSelected

Emitted when the user opts to run selected steps from the model.

showLog

Emitted when the user opts to view the previous log from this child algorithm.

showPreviousResults

Emitted when the user opts to view previous results from this child algorithm.

class qgis.gui.QgsModelChildAlgorithmGraphicItem[source]

Bases: QgsModelComponentGraphicItem

__init__(child: QgsProcessingModelChildAlgorithm | None, model: QgsProcessingModelAlgorithm | None, parent: QGraphicsItem | None)

Constructor for QgsModelChildAlgorithmGraphicItem for the specified child, with the specified parent item.

The model argument specifies the associated processing model. Ownership of model is not transferred, and it must exist for the lifetime of this object.

Ownership of child is transferred to the item.

Parameters:
signal runFromHere[source]

Emitted when the user opts to run the model from this child algorithm.

Added in version 3.38.

signal runSelected[source]

Emitted when the user opts to run selected steps from the model.

Added in version 3.38.

setResults(self, results: QgsProcessingModelChildAlgorithmResult)[source]

Sets the results obtained for this child algorithm for the last model execution through the dialog.

Parameters:

results (QgsProcessingModelChildAlgorithmResult)

signal showLog[source]

Emitted when the user opts to view the previous log from this child algorithm.

Added in version 3.38.

signal showPreviousResults[source]

Emitted when the user opts to view previous results from this child algorithm.

Added in version 3.38.