Class: QgsProcessingModelComment

Represents a comment in a model.

Added in version 3.14.

Class Hierarchy

Inheritance diagram of qgis.core.QgsProcessingModelComment

Base classes

QgsProcessingModelComponent

Represents a component of a model algorithm.

Methods

loadVariant

Loads this comment from a QVariantMap.

toVariant

Saves this comment to a QVariant.

class qgis.core.QgsProcessingModelComment[source]

Bases: QgsProcessingModelComponent

__init__(description: str | None = '')

Constructor for QgsProcessingModelComment with the specified description.

Parameters:

description (Optional[str] = '')

__init__(a0: QgsProcessingModelComment)
Parameters:

a0 (QgsProcessingModelComment)

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

Loads this comment from a QVariantMap.

See also

toVariant()

Parameters:

map (Dict[str, Any])

Return type:

bool

toVariant(self) Any[source]

Saves this comment to a QVariant.

See also

loadVariant()

Return type:

Any