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)
Note
This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE
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