Class: QgsProcessingModelComment¶
-
class
qgis.core.
QgsProcessingModelComment
(description: str = '')¶ Bases:
QgsProcessingModelComponent
Constructor for
QgsProcessingModelComment
with the specifieddescription
.QgsProcessingModelComment(
QgsProcessingModelComment
)Represents a comment in a model.
New in version 3.14.
- Parameters
description –
-
clone
(self) → QgsProcessingModelComment¶ - Return type
-
copyNonDefinitionProperties
(self, other: QgsProcessingModelComponent)¶ Copies all non-specific definition properties from the
other
component definition.This includes properties like the size and position of the component, but not properties like the specific algorithm or input details.
New in version 3.14.
-
loadVariant
(self, map: Dict[str, Any]) → bool¶ Loads this comment from a QVariantMap.
See also
- Parameters
map (Dict[str) –
- Return type
bool
-
restoreCommonProperties
(self, map: Dict[str, Any])¶ Restores the component properties from a QVariantMap.
See also
-
saveCommonProperties
(self, map: Dict[str, Any])¶ Saves the component properties to a QVariantMap.
See also
-
toVariant
(self) → Any¶ Saves this comment to a QVariant.
See also
- Return type
Any