Class: QgsModelParameterGraphicItem

class qgis.gui.QgsModelParameterGraphicItem(parameter: QgsProcessingModelParameter, model: QgsProcessingModelAlgorithm, parent: QGraphicsItem)

Bases: QgsModelComponentGraphicItem

Constructor for QgsModelParameterGraphicItem for the specified parameter, with the specified parent item.

The model argument specifies the associated processing model. Ownership of model is not transferred, and it must exist for the lifetime of this object.

Ownership of parameter is transferred to the item.

A graphic item representing a model parameter (input) in the model designer.

Warning

Not stable API

New in version 3.14.

Parameters
canDeleteComponent(self) → bool
Return type

bool

childEvent()
connectNotify()
contextMenuEvent(self, event: QGraphicsSceneContextMenuEvent)
Parameters

event (QGraphicsSceneContextMenuEvent) –

customEvent()
deleteComponent(self)
disconnectNotify()
dragEnterEvent()
dragLeaveEvent()
dragMoveEvent()
dropEvent()
editComponent()
event()
fillColor(self, state: QgsModelComponentGraphicItem.State) → QColor
Parameters

state (QgsModelComponentGraphicItem.State) –

Return type

QColor

focusInEvent()
focusOutEvent()
iconPicture(self) → QPicture
Return type

QPicture

iconPixmap()
inputMethodEvent()
inputMethodQuery()
isSignalConnected()
keyPressEvent()
keyReleaseEvent()
mouseMoveEvent()
mousePressEvent()
mouseReleaseEvent()
prepareGeometryChange()
receivers()
sceneEvent()
sceneEventFilter()
sender()
senderSignalIndex()
strokeColor(self, state: QgsModelComponentGraphicItem.State) → QColor
Parameters

state (QgsModelComponentGraphicItem.State) –

Return type

QColor

strokeStyle()
textColor(self, state: QgsModelComponentGraphicItem.State) → QColor
Parameters

state (QgsModelComponentGraphicItem.State) –

Return type

QColor

timerEvent()
truncatedTextForItem()
updateButtonPositions()
updateMicroFocus()
updateStoredComponentPosition(self, pos: Union[QPointF, QPoint], size: QSizeF)
Parameters
  • pos (Union[QPointF) –

  • size (QSizeF) –

wheelEvent()