Class: QgsModelParameterGraphicItem¶
A graphic item representing a model parameter (input) 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. |
|
Virtual Methods
In PyQGIS, only methods marked as virtual can be safely overridden in a Python subclass of QgsModelParameterGraphicItem. See the FAQ for more details.
- class qgis.gui.QgsModelParameterGraphicItem[source]¶
Bases:
QgsModelComponentGraphicItem- __init__(parameter: QgsProcessingModelParameter | None, model: QgsProcessingModelAlgorithm | None, parent: QGraphicsItem | None)
Constructor for QgsModelParameterGraphicItem for the specified
parameter, 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
parameteris transferred to the item.- Parameters:
parameter (Optional[QgsProcessingModelParameter])
model (Optional[QgsProcessingModelAlgorithm])
parent (Optional[QGraphicsItem])