QGraphicsSceneWheelEvent

The QGraphicsSceneWheelEvent class provides wheel events in the graphics view framework. More

Inheritance diagram of PySide6.QtWidgets.QGraphicsSceneWheelEvent

Synopsis

Functions

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() ).

class PySide6.QtWidgets.QGraphicsSceneWheelEvent([type=None])
Parameters

typeType

Constructs a QGraphicsSceneWheelEvent of type type, which is always GraphicsSceneWheel .

PySide6.QtWidgets.QGraphicsSceneWheelEvent.buttons()
Return type

MouseButtons

Returns the mouse buttons that were pressed when the wheel event occurred.

See also

modifiers()

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.modifiers()
Return type

KeyboardModifiers

Returns the keyboard modifiers that were active when the wheel event occurred.

See also

buttons()

PySide6.QtWidgets.QGraphicsSceneWheelEvent.orientation()
Return type

Orientation

Returns the wheel orientation.

PySide6.QtWidgets.QGraphicsSceneWheelEvent.pos()
Return type

PySide6.QtCore.QPointF

Returns the position of the cursor in item coordinates when the wheel event occurred.

PySide6.QtWidgets.QGraphicsSceneWheelEvent.scenePos()
Return type

PySide6.QtCore.QPointF

Returns the position of the cursor in scene coordinates when the wheel event occurred.

See also

pos() screenPos()

PySide6.QtWidgets.QGraphicsSceneWheelEvent.screenPos()
Return type

PySide6.QtCore.QPoint

Returns the position of the cursor in screen coordinates when the wheel event occurred.

See also

pos() scenePos()

PySide6.QtWidgets.QGraphicsSceneWheelEvent.setButtons(buttons)
Parameters

buttonsMouseButtons

See also

buttons()

PySide6.QtWidgets.QGraphicsSceneWheelEvent.setDelta(delta)
Parameters

delta – int

See also

delta()

PySide6.QtWidgets.QGraphicsSceneWheelEvent.setModifiers(modifiers)
Parameters

modifiersKeyboardModifiers

See also

modifiers()

PySide6.QtWidgets.QGraphicsSceneWheelEvent.setOrientation(orientation)
Parameters

orientationOrientation

See also

orientation()

PySide6.QtWidgets.QGraphicsSceneWheelEvent.setPos(pos)
Parameters

posPySide6.QtCore.QPointF

See also

pos()

PySide6.QtWidgets.QGraphicsSceneWheelEvent.setScenePos(pos)
Parameters

posPySide6.QtCore.QPointF

See also

scenePos()

PySide6.QtWidgets.QGraphicsSceneWheelEvent.setScreenPos(pos)
Parameters

posPySide6.QtCore.QPoint

See also

screenPos()