Class: QgsModelCommentGraphicItem¶
A graphic item representing a model comment in the model designer.
Warning
Not stable API
Added in version 3.14.
Class Hierarchy¶
Base classes¶
Base class for graphic items representing model components in the model designer. |
|
Methods
Returns the parent model component item. |
- class qgis.gui.QgsModelCommentGraphicItem[source]¶
Bases:
QgsModelComponentGraphicItem- __init__(comment: QgsProcessingModelComment | None, parentItem: QgsModelComponentGraphicItem | None, model: QgsProcessingModelAlgorithm | None, parent: QGraphicsItem | None)
Constructor for QgsModelCommentGraphicItem for the specified
comment, with the specifiedparentitem.The
modelargument specifies the associated processing model. Ownership ofmodelis not transferred, and it must exist for the lifetime of this object.Ownership of
outputis transferred to the item.- Parameters:
comment (Optional[QgsProcessingModelComment])
parentItem (Optional[QgsModelComponentGraphicItem])
model (Optional[QgsProcessingModelAlgorithm])
parent (Optional[QGraphicsItem])
- parentComponentItem(self) QgsModelComponentGraphicItem | None[source]¶
Returns the parent model component item.
- Return type:
Optional[QgsModelComponentGraphicItem]