Class: QgsModelCommentGraphicItem

class qgis.gui.QgsModelCommentGraphicItem(comment: QgsProcessingModelComment, parentItem: QgsModelComponentGraphicItem, model: QgsProcessingModelAlgorithm, parent: QGraphicsItem)

Bases: QgsModelComponentGraphicItem

Constructor for QgsModelCommentGraphicItem for the specified comment, 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 output is transferred to the item.

A graphic item representing a model comment 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(self)
event()
fillColor(self, state: QgsModelComponentGraphicItem.State) → QColor
Parameters

state (QgsModelComponentGraphicItem.State) –

Return type

QColor

focusInEvent()
focusOutEvent()
iconPicture()
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(self, state: QgsModelComponentGraphicItem.State) → Qt.PenStyle
Parameters

state (QgsModelComponentGraphicItem.State) –

Return type

Qt.PenStyle

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()