Class: QgsModelArrowItem¶
-
class
qgis.gui.
QgsModelArrowItem
(startItem: QgsModelComponentGraphicItem, startEdge: Qt.Edge, startIndex: int, startIsOutgoing: bool, startMarker: QgsModelArrowItem.Marker, endItem: QgsModelComponentGraphicItem, endEdge: Qt.Edge, endIndex: int, endIsIncoming: bool, endMarker: QgsModelArrowItem.Marker)¶ Bases:
PyQt5.QtCore.QObject
,PyQt5.QtWidgets.QGraphicsPathItem
Constructor for
QgsModelArrowItem
, with the specifiedparent
item.The arrow will link
startItem
toendItem
, joining the specifiedstartEdge
andstartIndex
toendEdge
andendIndex
.QgsModelArrowItem(startItem:
QgsModelComponentGraphicItem
, startEdge: Qt.Edge, startIndex: int, startMarker: QgsModelArrowItem.Marker, endItem:QgsModelComponentGraphicItem
, endMarker: QgsModelArrowItem.Marker) Constructor forQgsModelArrowItem
, with the specifiedparent
item.The arrow will link
startItem
toendItem
, joining the specifiedstartEdge
andstartIndex
to an automatic point onendItem
.QgsModelArrowItem(startItem:
QgsModelComponentGraphicItem
, startMarker: QgsModelArrowItem.Marker, endItem:QgsModelComponentGraphicItem
, endEdge: Qt.Edge, endIndex: int, endMarker: QgsModelArrowItem.Marker) Constructor forQgsModelArrowItem
, with the specifiedparent
item.The arrow will link
startItem
toendItem
, joining an automatic point onstartItem
to the specifiedendEdge
andendIndex
.QgsModelArrowItem(startItem:
QgsModelComponentGraphicItem
, startMarker: QgsModelArrowItem.Marker, endItem:QgsModelComponentGraphicItem
, endMarker: QgsModelArrowItem.Marker) Constructor forQgsModelArrowItem
, with the specifiedparent
item.The arrow will link
startItem
toendItem
, 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
startItem (QgsModelComponentGraphicItem) –
startEdge (Qt.Edge) –
startIndex (int) –
startIsOutgoing (bool) –
startMarker (QgsModelArrowItem.Marker) –
endItem (QgsModelComponentGraphicItem) –
endEdge (Qt.Edge) –
endIndex (int) –
endIsIncoming (bool) –
endMarker –
-
ArrowHead
= 1¶
-
Circle
= 0¶
-
class
Marker
¶ Bases:
int
-
childEvent
(self, QChildEvent)¶
-
connectNotify
(self, QMetaMethod)¶
-
contextMenuEvent
(self, QGraphicsSceneContextMenuEvent)¶
-
customEvent
(self, QEvent)¶
-
disconnectNotify
(self, QMetaMethod)¶
-
dragEnterEvent
(self, QGraphicsSceneDragDropEvent)¶
-
dragLeaveEvent
(self, QGraphicsSceneDragDropEvent)¶
-
dragMoveEvent
(self, QGraphicsSceneDragDropEvent)¶
-
dropEvent
(self, QGraphicsSceneDragDropEvent)¶
-
focusInEvent
(self, QFocusEvent)¶
-
focusOutEvent
(self, QFocusEvent)¶
-
hoverEnterEvent
(self, QGraphicsSceneHoverEvent)¶
-
hoverLeaveEvent
(self, QGraphicsSceneHoverEvent)¶
-
hoverMoveEvent
(self, QGraphicsSceneHoverEvent)¶
-
inputMethodEvent
(self, QInputMethodEvent)¶
-
inputMethodQuery
(self, Qt.InputMethodQuery) → Any¶
-
isSignalConnected
(self, QMetaMethod) → bool¶
-
itemChange
(self, QGraphicsItem.GraphicsItemChange, Any) → Any¶
-
keyPressEvent
(self, QKeyEvent)¶
-
keyReleaseEvent
(self, QKeyEvent)¶
-
mouseDoubleClickEvent
(self, QGraphicsSceneMouseEvent)¶
-
mouseMoveEvent
(self, QGraphicsSceneMouseEvent)¶
-
mousePressEvent
(self, QGraphicsSceneMouseEvent)¶
-
mouseReleaseEvent
(self, QGraphicsSceneMouseEvent)¶
-
paint
(self, painter: QPainter, option: QStyleOptionGraphicsItem, widget: QWidget = None)¶ - Parameters
painter (QPainter) –
option (QStyleOptionGraphicsItem) –
widget (QWidget = None) –
-
prepareGeometryChange
(self)¶
-
receivers
(self, PYQT_SIGNAL) → int¶
-
sceneEvent
(self, QEvent) → bool¶
-
sceneEventFilter
(self, QGraphicsItem, QEvent) → bool¶
-
sender
(self) → QObject¶
-
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, QTimerEvent)¶
-
updateMicroFocus
(self)¶
-
updatePath
(self)¶ Updates the cached path linking the two items.
-
wheelEvent
(self, QGraphicsSceneWheelEvent)¶