Class: QgsModelArrowItem

class qgis.gui.QgsModelArrowItem

Bases: PyQt5.QtCore.QObject, PyQt5.QtWidgets.QGraphicsPathItem

A link arrow item for use in the model designer.

Warning

Not stable API

New in version 3.14.

QgsModelArrowItem(startItem: QgsModelComponentGraphicItem, startEdge: Qt.Edge, startIndex: int, startIsOutgoing: bool, startMarker: QgsModelArrowItem.Marker, endItem: QgsModelComponentGraphicItem, endEdge: Qt.Edge, endIndex: int, endIsIncoming: bool, endMarker: QgsModelArrowItem.Marker) Constructor for QgsModelArrowItem, with the specified parent item.

The arrow will link startItem to endItem, joining the specified startEdge and startIndex to endEdge and endIndex.

QgsModelArrowItem(startItem: QgsModelComponentGraphicItem, startEdge: Qt.Edge, startIndex: int, startMarker: QgsModelArrowItem.Marker, endItem: QgsModelComponentGraphicItem, endMarker: QgsModelArrowItem.Marker) Constructor for QgsModelArrowItem, with the specified parent item.

The arrow will link startItem to endItem, joining the specified startEdge and startIndex to an automatic point on endItem.

QgsModelArrowItem(startItem: QgsModelComponentGraphicItem, startMarker: QgsModelArrowItem.Marker, endItem: QgsModelComponentGraphicItem, endEdge: Qt.Edge, endIndex: int, endMarker: QgsModelArrowItem.Marker) Constructor for QgsModelArrowItem, with the specified parent item.

The arrow will link startItem to endItem, joining an automatic point on startItem to the specified endEdge and endIndex.

QgsModelArrowItem(startItem: QgsModelComponentGraphicItem, startMarker: QgsModelArrowItem.Marker, endItem: QgsModelComponentGraphicItem, endMarker: QgsModelArrowItem.Marker) Constructor for QgsModelArrowItem, with the specified parent item.

The arrow will link startItem to endItem, joining an automatic points on both items.

ArrowHead = 1
Circle = 0
class Marker

Bases: int

childEvent(self, QChildEvent)
connectNotify(self, QMetaMethod)
contextMenuEvent(self, QGraphicsSceneContextMenuEvent)
customEvent(self, QEvent)
disconnectNotify(self, QMetaMethod)
dragEnterEvent(self, QGraphicsSceneDragDropEvent)
dragLeaveEvent(self, QGraphicsSceneDragDropEvent)
dragMoveEvent(self, QGraphicsSceneDragDropEvent)
dropEvent(self, QGraphicsSceneDragDropEvent)
focusInEvent(self, QFocusEvent)
focusOutEvent(self, QFocusEvent)
hoverEnterEvent(self, QGraphicsSceneHoverEvent)
hoverLeaveEvent(self, QGraphicsSceneHoverEvent)
hoverMoveEvent(self, QGraphicsSceneHoverEvent)
inputMethodEvent(self, QInputMethodEvent)
inputMethodQuery(self, Qt.InputMethodQuery) Any
isSignalConnected(self, QMetaMethod) bool
itemChange(self, QGraphicsItem.GraphicsItemChange, Any) Any
keyPressEvent(self, QKeyEvent)
keyReleaseEvent(self, QKeyEvent)
mouseDoubleClickEvent(self, QGraphicsSceneMouseEvent)
mouseMoveEvent(self, QGraphicsSceneMouseEvent)
mousePressEvent(self, QGraphicsSceneMouseEvent)
mouseReleaseEvent(self, QGraphicsSceneMouseEvent)
paint(self, painter: QPainter, option: QStyleOptionGraphicsItem, widget: QWidget = None)
Parameters
  • painter (QPainter) –

  • option (QStyleOptionGraphicsItem) –

  • widget (QWidget = None) –

prepareGeometryChange(self)
receivers(self, PYQT_SIGNAL) int
sceneEvent(self, QEvent) bool
sceneEventFilter(self, QGraphicsItem, QEvent) bool
sender(self) QObject
senderSignalIndex(self) int
setPenStyle(self, style: Qt.PenStyle)

Sets the pen style to use for rendering the arrow line.

Parameters

style (Qt.PenStyle) –

timerEvent(self, QTimerEvent)
updateMicroFocus(self)
updatePath(self)

Updates the cached path linking the two items.

wheelEvent(self, QGraphicsSceneWheelEvent)