详细描述
-
class
PySide.QtGui.
QGraphicsSceneHoverEvent
(
[
type=None
]
)
-
|
参数:
|
type
–
PySide.QtCore.QEvent.Type
|
Constructs a graphics scene hover event of the specified
type
.
-
PySide.QtGui.QGraphicsSceneHoverEvent.
lastPos
(
)
-
Returns the last recorded mouse cursor position in item coordinates.
-
PySide.QtGui.QGraphicsSceneHoverEvent.
lastScenePos
(
)
-
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.
-
PySide.QtGui.QGraphicsSceneHoverEvent.
lastScreenPos
(
)
-
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.
-
PySide.QtGui.QGraphicsSceneHoverEvent.
modifiers
(
)
-
|
返回类型:
|
PySide.QtCore.Qt.KeyboardModifiers
|
Returns the keyboard modifiers at the moment the hover event was sent.
-
PySide.QtGui.QGraphicsSceneHoverEvent.
pos
(
)
-
Returns the position of the mouse cursor in item coordinates at the moment the hover event was sent.
-
PySide.QtGui.QGraphicsSceneHoverEvent.
scenePos
(
)
-
Returns the position of the mouse cursor in scene coordinates at the moment the hover event was sent.
-
PySide.QtGui.QGraphicsSceneHoverEvent.
screenPos
(
)
-
Returns the position of the mouse cursor in screen coordinates at the moment the hover event was sent.
-
PySide.QtGui.QGraphicsSceneHoverEvent.
setLastPos
(
pos
)
-
-
PySide.QtGui.QGraphicsSceneHoverEvent.
setLastScenePos
(
pos
)
-
-
PySide.QtGui.QGraphicsSceneHoverEvent.
setLastScreenPos
(
pos
)
-
-
PySide.QtGui.QGraphicsSceneHoverEvent.
setModifiers
(
modifiers
)
-
|
参数:
|
modifiers
–
PySide.QtCore.Qt.KeyboardModifiers
|
-
PySide.QtGui.QGraphicsSceneHoverEvent.
setPos
(
pos
)
-
Sets the position associated with the hover event to the given
point
in item coordinates.
-
PySide.QtGui.QGraphicsSceneHoverEvent.
setScenePos
(
pos
)
-
Sets the position associated with the hover event to the given
point
in scene coordinates.
-
PySide.QtGui.QGraphicsSceneHoverEvent.
setScreenPos
(
pos
)
-
Sets the position associated with the hover event to the given
point
in screen coordinates.