QGraphicsSceneWheelEventclass provides wheel events in the graphics view framework. 更多 …
def
buttons
()
def
delta
()
def
modifiers
()
def
orientation
()
def
pos
()
def
scenePos
()
def
screenPos
()
def
setButtons
(buttons)
def
setDelta
(delta)
def
setModifiers
(modifiers)
def
setOrientation
(orientation)
def
setPos
(pos)
def
setScenePos
(pos)
def
setScreenPos
(pos)
QGraphicsSceneWheelEventclass provides wheel events in the graphics view framework.
QWheelEvents received by aQGraphicsVieware translated into QGraphicsSceneWheelEvents; it translates theglobalPos()into item, scene, and screen coordinates (pos(),scenePos(),和screenPos()).
QGraphicsSceneWheelEvent
(
[
type=None
]
)
¶
- param type
Type
构造
QGraphicsSceneWheelEvent
of type
type
, which is always
GraphicsSceneWheel
.
MouseButtons
Returns the mouse buttons that were pressed when the wheel event occurred.
另请参阅
PySide2.QtWidgets.QGraphicsSceneWheelEvent.
delta
(
)
¶
int
Returns the distance that the wheel is rotated, in eighths (1/8s) of a degree. A positive value indicates that the wheel was rotated forwards away from the user; a negative value indicates that the wheel was rotated backwards toward the user.
Most mouse types work in steps of 15 degrees, in which case the delta value is a multiple of 120 (== 15 * 8).
PySide2.QtWidgets.QGraphicsSceneWheelEvent.
modifiers
(
)
¶
KeyboardModifiers
Returns the keyboard modifiers that were active when the wheel event occurred.
另请参阅
PySide2.QtWidgets.QGraphicsSceneWheelEvent.
orientation
(
)
¶
取向
Returns the wheel orientation.
PySide2.QtWidgets.QGraphicsSceneWheelEvent.
pos
(
)
¶
QPointF
Returns the position of the cursor in item coordinates when the wheel event occurred.
另请参阅
PySide2.QtWidgets.QGraphicsSceneWheelEvent.
scenePos
(
)
¶
QPointF
Returns the position of the cursor in scene coordinates when the wheel event occurred.
另请参阅
PySide2.QtWidgets.QGraphicsSceneWheelEvent.
screenPos
(
)
¶
QPoint
Returns the position of the cursor in screen coordinates when the wheel event occurred.
另请参阅
PySide2.QtWidgets.QGraphicsSceneWheelEvent.
setButtons
(
buttons
)
¶
buttons
–
MouseButtons
另请参阅
PySide2.QtWidgets.QGraphicsSceneWheelEvent.
setModifiers
(
modifiers
)
¶
modifiers
–
KeyboardModifiers
另请参阅
PySide2.QtWidgets.QGraphicsSceneWheelEvent.
setOrientation
(
orientation
)
¶
orientation
–
取向
另请参阅
PySide2.QtWidgets.QGraphicsSceneWheelEvent.
setScenePos
(
pos
)
¶
pos
–
QPointF
另请参阅
PySide2.QtWidgets.QGraphicsSceneWheelEvent.
setScreenPos
(
pos
)
¶
pos
–
QPoint
另请参阅