QWheelEvent

The QWheelEvent class contains parameters that describe a mouse wheel event. More

Inheritance diagram of PySide2.Qt3DInput.Qt3DInput.QWheelEvent

Synopsis

Functions

Detailed Description

Mouse wheel events occur when the mouse is rotated.

See also

QKeyEvent QMouseEvent QMouseHandler

class PySide2.Qt3DInput.Qt3DInput.QWheelEvent
PySide2.Qt3DInput.Qt3DInput.QWheelEvent.Buttons

Constant

Description

Qt3DInput.QWheelEvent.LeftButton

Qt3DInput.QWheelEvent.RightButton

Qt3DInput.QWheelEvent.MiddleButton

Qt3DInput.QWheelEvent.BackButton

Qt3DInput.QWheelEvent.NoButton

PySide2.Qt3DInput.Qt3DInput.QWheelEvent.Modifiers

Constant

Description

Qt3DInput.QWheelEvent.NoModifier

Qt3DInput.QWheelEvent.ShiftModifier

Qt3DInput.QWheelEvent.ControlModifier

Qt3DInput.QWheelEvent.AltModifier

Qt3DInput.QWheelEvent.MetaModifier

Qt3DInput.QWheelEvent.KeypadModifier

PySide2.Qt3DInput.Qt3DInput.QWheelEvent.angleDelta()
Return type:

PySide2.QtCore.QPoint

Specifies The change wheel angle of the mouse wheel event

PySide2.Qt3DInput.Qt3DInput.QWheelEvent.buttons()
Return type:

int

Specifies the button if present in the mouse wheel event

PySide2.Qt3DInput.Qt3DInput.QWheelEvent.isAccepted()
Return type:

bool

Specifies if the mouse wheel event has been accepted

PySide2.Qt3DInput.Qt3DInput.QWheelEvent.modifiers()
Return type:

Modifiers

Specifies if any modifiers were applied to the mouse wheel event

PySide2.Qt3DInput.Qt3DInput.QWheelEvent.setAccepted(accepted)
Parameters:

accepted – bool

Specifies if the mouse wheel event has been accepted

PySide2.Qt3DInput.Qt3DInput.QWheelEvent.type()
Return type:

Type

Returns the Type of the event.

PySide2.Qt3DInput.Qt3DInput.QWheelEvent.x()
Return type:

int

Specifies The X coordinate of the mouse wheel event

PySide2.Qt3DInput.Qt3DInput.QWheelEvent.y()
Return type:

int

Specifies The Y coordinate of the mouse wheel event