Class: QgsModelArrowItem¶
A link arrow item for use in the model designer.
Warning
Not stable API
Added in version 3.14.
List of all members, including inherited members
Class Hierarchy¶
Base classes¶
Constructor
Enums
Methods
Returns the edge of the end item that arrow ends at. |
|
Returns the index of the end item that arrow ends at. |
|
Returns the item at the end of the arrow. |
|
Sets the pen style to use for rendering the arrow line. |
|
Returns the edge of the start item that arrow begins at. |
|
Returns the index of the start item that arrow begins at. |
|
Returns the item at the start of the arrow. |
|
Updates the cached path linking the two items. |
- 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
parentitem.The arrow will link
startItemtoendItem, joining the specifiedstartEdgeandstartIndextoendEdgeandendIndex.- 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
parentitem.The arrow will link
startItemtoendItem, joining the specifiedstartEdgeandstartIndexto 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
parentitem.The arrow will link
startItemtoendItem, joining an automatic point onstartItemto the specifiedendEdgeandendIndex.- 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
parentitem.The arrow will link
startItemtoendItem, joining an automatic points on both items.- Parameters:
startItem (Optional[QgsModelComponentGraphicItem])
startMarker (QgsModelArrowItem.Marker)
endItem (Optional[QgsModelComponentGraphicItem])
endMarker (QgsModelArrowItem.Marker)
- ArrowHead = 1¶
- Circle = 0¶
- NoMarker = 2¶
- endEdge(self) Qt.Edge[source]¶
Returns the edge of the end item that arrow ends at.
See also
- Return type:
Qt.Edge
- endIndex(self) int[source]¶
Returns the index of the end item that arrow ends at.
See also
- Return type:
int
- endItem(self) QgsModelComponentGraphicItem | None[source]¶
Returns the item at the end of the arrow.
See also
- Return type:
- setPenStyle(self, style: Qt.PenStyle)[source]¶
Sets the pen
styleto use for rendering the arrow line.- Parameters:
style (Qt.PenStyle)
- startEdge(self) Qt.Edge[source]¶
Returns the edge of the start item that arrow begins at.
See also
- Return type:
Qt.Edge
- startIndex(self) int[source]¶
Returns the index of the start item that arrow begins at.
See also
- Return type:
int
- startItem(self) QgsModelComponentGraphicItem | None[source]¶
Returns the item at the start of the arrow.
See also
- Return type: