Class: QgsModelCommentGraphicItem

class qgis.gui.QgsModelCommentGraphicItem

Bases: QgsModelComponentGraphicItem

A graphic item representing a model comment in the model designer.

Warning

Not stable API

New in version 3.14.

QgsModelCommentGraphicItem(comment: QgsProcessingModelComment, parentItem: QgsModelComponentGraphicItem, model: QgsProcessingModelAlgorithm, parent: QGraphicsItem) 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.

canDeleteComponent(self) bool
Return type

bool

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

event (QGraphicsSceneContextMenuEvent) –

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

state (QgsModelComponentGraphicItem.State) –

Return type

QColor

focusInEvent(self, QFocusEvent)
focusOutEvent(self, QFocusEvent)
inputMethodEvent(self, QInputMethodEvent)
inputMethodQuery(self, Qt.InputMethodQuery) Any
isSignalConnected(self, QMetaMethod) bool
keyPressEvent(self, QKeyEvent)
keyReleaseEvent(self, QKeyEvent)
mouseMoveEvent(self, QGraphicsSceneMouseEvent)
mousePressEvent(self, QGraphicsSceneMouseEvent)
mouseReleaseEvent(self, QGraphicsSceneMouseEvent)
parentComponentItem(self) QgsModelComponentGraphicItem

Returns the parent model component item.

Return type

QgsModelComponentGraphicItem

prepareGeometryChange(self)
receivers(self, PYQT_SIGNAL) int
sceneEvent(self, QEvent) bool
sceneEventFilter(self, QGraphicsItem, QEvent) bool
sender(self) QObject
senderSignalIndex(self) int
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(self, QTimerEvent)
updateMicroFocus(self)
updateStoredComponentPosition(self, pos: Union[QPointF, QPoint], size: QSizeF)
Parameters
  • pos (Union[QPointF) –

  • size (QSizeF) –

wheelEvent(self, QGraphicsSceneWheelEvent)