Class: QgsModelArrowItem

A link arrow item for use in the model designer.

Warning

Not stable API

Added in version 3.14.

Class Hierarchy

Inheritance diagram of qgis.gui.QgsModelArrowItem

Base classes

QObject

QGraphicsPathItem

QAbstractGraphicsShapeItem

QGraphicsItem

Methods

setPenStyle

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

updatePath

Updates the cached path linking the two items.

Attributes

ArrowHead

Circle

NoMarker

class qgis.gui.QgsModelArrowItem[source]

Bases: QObject, QGraphicsPathItem

__init__(startItem: QgsModelComponentGraphicItem | None, startEdge: Qt.Edge, startIndex: int, startIsOutgoing: bool, startMarker: QgsModelArrowItem.Marker, endItem: QgsModelComponentGraphicItem | None, 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.

Parameters:
__init__(startItem: QgsModelComponentGraphicItem | None, startEdge: Qt.Edge, startIndex: int, startMarker: QgsModelArrowItem.Marker, endItem: QgsModelComponentGraphicItem | None, 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.

Parameters:
__init__(startItem: QgsModelComponentGraphicItem | None, startMarker: QgsModelArrowItem.Marker, endItem: QgsModelComponentGraphicItem | None, 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.

Parameters:
__init__(startItem: QgsModelComponentGraphicItem | None, startMarker: QgsModelArrowItem.Marker, endItem: QgsModelComponentGraphicItem | None, 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.

Parameters:
ArrowHead = 1
Circle = 0
class Marker

Bases: int

NoMarker = 2
setPenStyle(self, style: Qt.PenStyle)[source]

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

Parameters:

style (Qt.PenStyle)

updatePath(self)[source]

Updates the cached path linking the two items.