Class: QgsProcessingModelComponent

class qgis.core.QgsProcessingModelComponent(description: str = '')

Bases: sip.wrapper

Only subclasses can be created

QgsProcessingModelComponent(other: QgsProcessingModelComponent) Copies are protected to avoid slicing

Represents a component of a model algorithm.

New in version 3.0.

Parameters

description

description(self) → str

Returns the friendly description text for the component.

See also

setDescription()

Return type

str

position(self) → QPointF

Returns the position of the model component within the graphical modeler.

See also

setPosition()

Return type

QPointF

restoreCommonProperties(self, map: Dict[str, Any])

Restores the component properties from a QVariantMap.

Parameters

map (Dict[str) –

saveCommonProperties(self, map: Dict[str, Any])

Saves the component properties to a QVariantMap.

Parameters

map (Dict[str) –

setDescription(self, description: str)

Sets the friendly description text for the component.

See also

description()

Parameters

description (str) –

setPosition(self, position: Union[QPointF, QPoint])

Sets the position of the model component within the graphical modeler.

See also

position()

Parameters

position (Union[QPointF) –