QGraphicsSceneWheelEvent¶
The
QGraphicsSceneWheelEvent
class provides wheel events in the graphics view framework. More…
Synopsis¶
Functions¶
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)
Detailed Description¶
The
QGraphicsSceneWheelEvent
class provides wheel events in the graphics view framework.
QWheelEvent
s received by aQGraphicsView
are translated into QGraphicsSceneWheelEvents; it translates theglobalPos()
into item, scene, and screen coordinates (pos()
,scenePos()
, andscreenPos()
).
-
class
QGraphicsSceneWheelEvent
([type=None])¶ - param type
Type
Constructs a
QGraphicsSceneWheelEvent
of typetype
, which is alwaysGraphicsSceneWheel
.
- Return type
MouseButtons
Returns the mouse buttons that were pressed when the wheel event occurred.
See also
-
PySide2.QtWidgets.QGraphicsSceneWheelEvent.
delta
()¶ - Return type
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
()¶ - Return type
KeyboardModifiers
Returns the keyboard modifiers that were active when the wheel event occurred.
See also
-
PySide2.QtWidgets.QGraphicsSceneWheelEvent.
orientation
()¶ - Return type
Orientation
Returns the wheel orientation.
-
PySide2.QtWidgets.QGraphicsSceneWheelEvent.
pos
()¶ - Return type
QPointF
Returns the position of the cursor in item coordinates when the wheel event occurred.
See also
-
PySide2.QtWidgets.QGraphicsSceneWheelEvent.
scenePos
()¶ - Return type
QPointF
Returns the position of the cursor in scene coordinates when the wheel event occurred.
See also
-
PySide2.QtWidgets.QGraphicsSceneWheelEvent.
screenPos
()¶ - Return type
QPoint
Returns the position of the cursor in screen coordinates when the wheel event occurred.
See also
-
PySide2.QtWidgets.QGraphicsSceneWheelEvent.
setButtons
(buttons)¶ - Parameters
buttons –
MouseButtons
See also
-
PySide2.QtWidgets.QGraphicsSceneWheelEvent.
setModifiers
(modifiers)¶ - Parameters
modifiers –
KeyboardModifiers
See also
-
PySide2.QtWidgets.QGraphicsSceneWheelEvent.
setOrientation
(orientation)¶ - Parameters
orientation –
Orientation
See also
-
PySide2.QtWidgets.QGraphicsSceneWheelEvent.
setScenePos
(pos)¶ - Parameters
pos –
QPointF
See also
-
PySide2.QtWidgets.QGraphicsSceneWheelEvent.
setScreenPos
(pos)¶ - Parameters
pos –
QPoint
See also
© 2018 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.