QGraphicsSceneHoverEventclass provides hover events in the graphics view framework. 更多 …
def
lastPos
()
def
lastScenePos
()
def
lastScreenPos
()
def
modifiers
()
def
pos
()
def
scenePos
()
def
screenPos
()
def
setLastPos
(pos)
def
setLastScenePos
(pos)
def
setLastScreenPos
(pos)
def
setModifiers
(modifiers)
def
setPos
(pos)
def
setScenePos
(pos)
def
setScreenPos
(pos)
当
QGraphicsView接收QHoverEventevent, it translates it intoQGraphicsSceneHoverEvent. The event is then forwarded to theQGraphicsSceneassociated with the view.
QGraphicsSceneHoverEvent
(
[
type=None
]
)
¶
- param type
Type
Constructs a graphics scene hover event of the specified
type
.
PySide2.QtWidgets.QGraphicsSceneHoverEvent.
lastPos
(
)
¶
QPointF
Returns the last recorded mouse cursor position in item coordinates.
PySide2.QtWidgets.QGraphicsSceneHoverEvent.
lastScenePos
(
)
¶
QPointF
Returns the last recorded, the scene coordinates of the previous mouse or hover event received by the view, that created the event mouse cursor position in scene coordinates.
PySide2.QtWidgets.QGraphicsSceneHoverEvent.
lastScreenPos
(
)
¶
QPoint
Returns the last recorded mouse cursor position in screen coordinates. The last recorded position is the position of the previous mouse or hover event received by the view that created the event.
PySide2.QtWidgets.QGraphicsSceneHoverEvent.
modifiers
(
)
¶
KeyboardModifiers
Returns the keyboard modifiers at the moment the hover event was sent.
PySide2.QtWidgets.QGraphicsSceneHoverEvent.
pos
(
)
¶
QPointF
Returns the position of the mouse cursor in item coordinates at the moment the hover event was sent.
另请参阅
PySide2.QtWidgets.QGraphicsSceneHoverEvent.
scenePos
(
)
¶
QPointF
Returns the position of the mouse cursor in scene coordinates at the moment the hover event was sent.
另请参阅
PySide2.QtWidgets.QGraphicsSceneHoverEvent.
screenPos
(
)
¶
QPoint
Returns the position of the mouse cursor in screen coordinates at the moment the hover event was sent.
另请参阅
PySide2.QtWidgets.QGraphicsSceneHoverEvent.
setLastScenePos
(
pos
)
¶
pos
–
QPointF
另请参阅
PySide2.QtWidgets.QGraphicsSceneHoverEvent.
setLastScreenPos
(
pos
)
¶
pos
–
QPoint
另请参阅
PySide2.QtWidgets.QGraphicsSceneHoverEvent.
setModifiers
(
modifiers
)
¶
modifiers
–
KeyboardModifiers
另请参阅
PySide2.QtWidgets.QGraphicsSceneHoverEvent.
setScenePos
(
pos
)
¶
pos
–
QPointF
另请参阅
PySide2.QtWidgets.QGraphicsSceneHoverEvent.
setScreenPos
(
pos
)
¶
pos
–
QPoint
另请参阅