Class: QgsProcessingModelChildDependency

Contains details of a child algorithm dependency.

Added in version 3.14.

Methods

loadVariant

Loads this dependency from a QVariantMap.

toVariant

Saves this dependency to a QVariant.

Attributes

childId

Child algorithm ID

conditionalBranch

Conditional branch output name, if applicable.

class qgis.core.QgsProcessingModelChildDependency[source]

Bases: object

__init__(childId: str | None = '', conditionalBranch: str | None = '')

Constructor for QgsProcessingModelChildDependency, with the specified childId.

Parameters:
  • childId (Optional[str] = '')

  • conditionalBranch (Optional[str] = '')

__init__(a0: QgsProcessingModelChildDependency)
Parameters:

a0 (QgsProcessingModelChildDependency)

childId: str

Child algorithm ID

conditionalBranch: str

Conditional branch output name, if applicable.

loadVariant(self, map: Dict[str, Any]) bool[source]

Loads this dependency from a QVariantMap.

See also

toVariant()

Parameters:

map (Dict[str, Any])

Return type:

bool

toVariant(self) Any[source]

Saves this dependency to a QVariant.

See also

loadVariant()

Return type:

Any