QGraphicsSceneWheelEvent¶
The QGraphicsSceneWheelEvent
class provides wheel events in the graphics view framework. More…
Synopsis¶
Functions¶
def
buttons
()def
delta
()def
isInverted
()def
modifiers
()def
orientation
()def
phase
()def
pixelDelta
()def
pos
()def
scenePos
()def
screenPos
()def
setButtons
(buttons)def
setDelta
(delta)def
setInverted
(inverted)def
setModifiers
(modifiers)def
setOrientation
(orientation)def
setPhase
(scrollPhase)def
setPixelDelta
(delta)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 a QGraphicsView
are translated into QGraphicsSceneWheelEvents; it translates the QWheelEvent::globalPos() into item, scene, and screen coordinates ( pos()
, scenePos()
, and screenPos()
).
See also
QGraphicsSceneMouseEvent
QGraphicsSceneContextMenuEvent
QGraphicsSceneHoverEvent
QWheelEvent
- PySide6.QtWidgets.QGraphicsSceneWheelEvent.buttons()¶
- Return type
MouseButtons
Returns the mouse buttons that were pressed when the wheel event occurred.
See also
- PySide6.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).
- PySide6.QtWidgets.QGraphicsSceneWheelEvent.isInverted()¶
- Return type
bool
Returns whether the delta values delivered with the event are inverted.
- PySide6.QtWidgets.QGraphicsSceneWheelEvent.modifiers()¶
- Return type
KeyboardModifiers
Returns the keyboard modifiers that were active when the wheel event occurred.
See also
- PySide6.QtWidgets.QGraphicsSceneWheelEvent.orientation()¶
- Return type
Returns the wheel orientation.
- PySide6.QtWidgets.QGraphicsSceneWheelEvent.phase()¶
- Return type
Returns the scrolling phase of this wheel event.
See also
phase
- PySide6.QtWidgets.QGraphicsSceneWheelEvent.pixelDelta()¶
- Return type
Returns the scrolling distance in pixels on screen. This value is provided on platforms that support high-resolution pixel-based delta values, such as macOS. The value should be used directly to scroll content on screen.
See also
pixelDelta
- PySide6.QtWidgets.QGraphicsSceneWheelEvent.pos()¶
- Return type
Returns the position of the cursor in item coordinates when the wheel event occurred.
See also
- PySide6.QtWidgets.QGraphicsSceneWheelEvent.scenePos()¶
- Return type
Returns the position of the cursor in scene coordinates when the wheel event occurred.
See also
- PySide6.QtWidgets.QGraphicsSceneWheelEvent.screenPos()¶
- Return type
Returns the position of the cursor in screen coordinates when the wheel event occurred.
See also
- PySide6.QtWidgets.QGraphicsSceneWheelEvent.setButtons(buttons)¶
- Parameters
buttons –
MouseButtons
- PySide6.QtWidgets.QGraphicsSceneWheelEvent.setDelta(delta)¶
- Parameters
delta – int
- PySide6.QtWidgets.QGraphicsSceneWheelEvent.setInverted(inverted)¶
- Parameters
inverted – bool
- PySide6.QtWidgets.QGraphicsSceneWheelEvent.setModifiers(modifiers)¶
- Parameters
modifiers –
KeyboardModifiers
- PySide6.QtWidgets.QGraphicsSceneWheelEvent.setOrientation(orientation)¶
- Parameters
orientation –
Orientation
- PySide6.QtWidgets.QGraphicsSceneWheelEvent.setPhase(scrollPhase)¶
- Parameters
scrollPhase –
ScrollPhase
- PySide6.QtWidgets.QGraphicsSceneWheelEvent.setPixelDelta(delta)¶
- Parameters
delta –
PySide6.QtCore.QPoint
- PySide6.QtWidgets.QGraphicsSceneWheelEvent.setPos(pos)¶
- Parameters
pos –
PySide6.QtCore.QPointF
- PySide6.QtWidgets.QGraphicsSceneWheelEvent.setScenePos(pos)¶
- Parameters
pos –
PySide6.QtCore.QPointF
- PySide6.QtWidgets.QGraphicsSceneWheelEvent.setScreenPos(pos)¶
- Parameters
pos –
PySide6.QtCore.QPoint
© 2022 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.