Class: QgsModelArrowItem¶
A link arrow item for use in the model designer.
Warning
Not stable API
Added in version 3.14.
Class Hierarchy¶
Base classes¶
Methods
Sets the pen style to use for rendering the arrow line. |
|
Updates the cached path linking the two items. |
Attributes
- 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
toendItem
, joining the specifiedstartEdge
andstartIndex
toendEdge
andendIndex
.- Parameters:
startItem (Optional[QgsModelComponentGraphicItem])
startEdge (Qt.Edge)
startIndex (int)
startIsOutgoing (bool)
startMarker (QgsModelArrowItem.Marker)
endItem (Optional[QgsModelComponentGraphicItem])
endEdge (Qt.Edge)
endIndex (int)
endIsIncoming (bool)
endMarker (QgsModelArrowItem.Marker)
- __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
toendItem
, joining the specifiedstartEdge
andstartIndex
to an automatic point onendItem
.- Parameters:
startItem (Optional[QgsModelComponentGraphicItem])
startEdge (Qt.Edge)
startIndex (int)
startMarker (QgsModelArrowItem.Marker)
endItem (Optional[QgsModelComponentGraphicItem])
endMarker (QgsModelArrowItem.Marker)
- __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
toendItem
, joining an automatic point onstartItem
to the specifiedendEdge
andendIndex
.- Parameters:
startItem (Optional[QgsModelComponentGraphicItem])
startMarker (QgsModelArrowItem.Marker)
endItem (Optional[QgsModelComponentGraphicItem])
endEdge (Qt.Edge)
endIndex (int)
endMarker (QgsModelArrowItem.Marker)
- __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
toendItem
, joining an automatic points on both items.- Parameters:
startItem (Optional[QgsModelComponentGraphicItem])
startMarker (QgsModelArrowItem.Marker)
endItem (Optional[QgsModelComponentGraphicItem])
endMarker (QgsModelArrowItem.Marker)
- ArrowHead = 1¶
- Circle = 0¶
- class Marker¶
Bases:
int
- NoMarker = 2¶