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
Added in version 3.14.
QgsModelArrowItem(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) Constructor for
QgsModelArrowItem
, with the specifiedparent
item.The arrow will link
startItem
toendItem
, joining the specifiedstartEdge
andstartIndex
toendEdge
andendIndex
.QgsModelArrowItem(startItem: Optional[QgsModelComponentGraphicItem], startEdge: Qt.Edge, startIndex: int, startMarker: QgsModelArrowItem.Marker, endItem: Optional[QgsModelComponentGraphicItem], endMarker: QgsModelArrowItem.Marker) Constructor for
QgsModelArrowItem
, with the specifiedparent
item.The arrow will link
startItem
toendItem
, joining the specifiedstartEdge
andstartIndex
to an automatic point onendItem
.QgsModelArrowItem(startItem: Optional[QgsModelComponentGraphicItem], startMarker: QgsModelArrowItem.Marker, endItem: Optional[QgsModelComponentGraphicItem], endEdge: Qt.Edge, endIndex: int, endMarker: QgsModelArrowItem.Marker) Constructor for
QgsModelArrowItem
, with the specifiedparent
item.The arrow will link
startItem
toendItem
, joining an automatic point onstartItem
to the specifiedendEdge
andendIndex
.QgsModelArrowItem(startItem: Optional[QgsModelComponentGraphicItem], startMarker: QgsModelArrowItem.Marker, endItem: Optional[QgsModelComponentGraphicItem], endMarker: QgsModelArrowItem.Marker) Constructor for
QgsModelArrowItem
, with the specifiedparent
item.The arrow will link
startItem
toendItem
, joining an automatic points on both items.Methods
- param painter:
Sets the pen
style
to use for rendering the arrow line.Updates the cached path linking the two items.
Signals
Attributes
- ArrowHead = 1¶
- Circle = 0¶
- class Marker¶
Bases:
int
- childEvent(self, a0: QChildEvent | None)¶
- connectNotify(self, signal: QMetaMethod)¶
- contextMenuEvent(self, event: QGraphicsSceneContextMenuEvent | None)¶
- customEvent(self, a0: QEvent | None)¶
- disconnectNotify(self, signal: QMetaMethod)¶
- dragEnterEvent(self, event: QGraphicsSceneDragDropEvent | None)¶
- dragLeaveEvent(self, event: QGraphicsSceneDragDropEvent | None)¶
- dragMoveEvent(self, event: QGraphicsSceneDragDropEvent | None)¶
- dropEvent(self, event: QGraphicsSceneDragDropEvent | None)¶
- focusInEvent(self, event: QFocusEvent | None)¶
- focusOutEvent(self, event: QFocusEvent | None)¶
- hoverEnterEvent(self, event: QGraphicsSceneHoverEvent | None)¶
- hoverLeaveEvent(self, event: QGraphicsSceneHoverEvent | None)¶
- hoverMoveEvent(self, event: QGraphicsSceneHoverEvent | None)¶
- inputMethodEvent(self, event: QInputMethodEvent | None)¶
- inputMethodQuery(self, query: Qt.InputMethodQuery) Any ¶
- isSignalConnected(self, signal: QMetaMethod) bool ¶
- itemChange(self, change: QGraphicsItem.GraphicsItemChange, value: Any) Any ¶
- keyPressEvent(self, event: QKeyEvent | None)¶
- keyReleaseEvent(self, event: QKeyEvent | None)¶
- mouseDoubleClickEvent(self, event: QGraphicsSceneMouseEvent | None)¶
- mouseMoveEvent(self, event: QGraphicsSceneMouseEvent | None)¶
- mousePressEvent(self, event: QGraphicsSceneMouseEvent | None)¶
- mouseReleaseEvent(self, event: QGraphicsSceneMouseEvent | None)¶
- paint(self, painter: QPainter | None, option: QStyleOptionGraphicsItem | None, widget: QWidget | None = None)¶
- Parameters:
painter (Optional[QPainter])
option (Optional[QStyleOptionGraphicsItem])
widget (Optional[QWidget] = None)
- prepareGeometryChange(self)¶
- receivers(self, signal: PYQT_SIGNAL) int ¶
- sceneEvent(self, event: QEvent | None) bool ¶
- sceneEventFilter(self, watched: QGraphicsItem | None, event: QEvent | None) bool ¶
- sender(self) QObject | None ¶
- 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, a0: QTimerEvent | None)¶
- updateMicroFocus(self)¶
- updatePath(self)¶
Updates the cached path linking the two items.
- wheelEvent(self, event: QGraphicsSceneWheelEvent | None)¶