Class: QgsModelArrowItem

class qgis.gui.QgsModelArrowItem(startItem: QgsModelComponentGraphicItem, startEdge: Qt.Edge, startIndex: int, endItem: QgsModelComponentGraphicItem, endEdge: Qt.Edge, endIndex: int)

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

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, endItem: QgsModelComponentGraphicItem) 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, endItem: QgsModelComponentGraphicItem, endEdge: Qt.Edge, endIndex: int) 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, endItem: QgsModelComponentGraphicItem) Constructor for QgsModelArrowItem, with the specified parent item.

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

A link arrow item for use in the model designer.

Warning

Not stable API

New in version 3.14.

Parameters
childEvent()
connectNotify()
contextMenuEvent()
customEvent()
disconnectNotify()
dragEnterEvent()
dragLeaveEvent()
dragMoveEvent()
dropEvent()
focusInEvent()
focusOutEvent()
hoverEnterEvent()
hoverLeaveEvent()
hoverMoveEvent()
inputMethodEvent()
inputMethodQuery()
isSignalConnected()
itemChange()
keyPressEvent()
keyReleaseEvent()
mouseDoubleClickEvent()
mouseMoveEvent()
mousePressEvent()
mouseReleaseEvent()
paint(self, painter: QPainter, option: QStyleOptionGraphicsItem, widget: QWidget = None)
Parameters
  • painter (QPainter) –

  • option (QStyleOptionGraphicsItem) –

  • widget (QWidget = None) –

prepareGeometryChange()
receivers()
sceneEvent()
sceneEventFilter()
sender()
senderSignalIndex()
setPenStyle(self, style: Qt.PenStyle)

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

Parameters

style (Qt.PenStyle) –

timerEvent()
updateMicroFocus()
updatePath(self)

Updates the cached path linking the two items.

wheelEvent()