Class: QgsProcessingModelComponent¶
-
class
qgis.core.
QgsProcessingModelComponent
(description: str = '')¶ Bases:
sip.wrapper
Only subclasses can be created
QgsProcessingModelComponent(other:
QgsProcessingModelComponent
) Copies are protected to avoid slicingRepresents 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
- Return type
str
-
position
(self) → QPointF¶ Returns the position of the model component within the graphical modeler.
See also
- Return type
QPointF
-
restoreCommonProperties
(self, map: Dict[str, Any])¶ Restores the component properties from a QVariantMap.
See also
- Parameters
map (Dict[str) –
-
saveCommonProperties
(self, map: Dict[str, Any])¶ Saves the component properties to a QVariantMap.
See also
- Parameters
map (Dict[str) –
-
setDescription
(self, description: str)¶ Sets the friendly
description
text for the component.See also
- Parameters
description (str) –
-
setPosition
(self, position: Union[QPointF, QPoint])¶ Sets the
position
of the model component within the graphical modeler.See also
- Parameters
position (Union[QPointF) –