Qt3DInput.QWheelEvent

Inheritance diagram of PySide2.Qt3DInput.Qt3DInput.QWheelEvent

Synopsis

Functions

Detailed Description

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

Mouse wheel events occur when the mouse is rotated.

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

Returns the distance that the wheel is rotated, in eighths of a degree. A positive value indicates that the wheel was rotated forward (away from the user), a negative value indicates the wheel was rotated backward (toward the user).

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

Returns a bitfield to be used to check for mouse buttons that may be accompanying the wheel event.

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

Returns whether the event was accepted.

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

Returns the keyboard modifiers that may be accompanying the wheel event.

PySide2.Qt3DInput.Qt3DInput.QWheelEvent.setAccepted(accepted)
Parameters:acceptedPySide2.QtCore.bool

Sets the event as accepted if accepted is true.

Note

When an event is accepted, it will prevent further propagation to other listeners.

See also

PySide2.QtCore.QEvent.isAccepted()

PySide2.Qt3DInput.Qt3DInput.QWheelEvent.type()
Return type:PySide2.QtCore.QEvent.Type

Returns the QEvent.Type of the event.

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

Returns the x position of the mouse event.

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

Returns the x position of the mouse event.