PySide6.Qt3DInput.Qt3DInput.QWheelEvent¶
- class QWheelEvent¶
The
QWheelEventclass contains parameters that describe a mouse wheel event. More…Synopsis¶
Properties¶
Methods¶
def
__init__()def
angleDelta()def
buttons()def
isAccepted()def
modifiers()def
setAccepted()def
type()def
x()def
y()
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¶
Mouse wheel events occur when the mouse is rotated.
See also
QKeyEventQMouseEventQMouseHandler- class Buttons¶
Constant
Description
Qt3DInput.QWheelEvent.LeftButton
Qt3DInput.QWheelEvent.RightButton
Qt3DInput.QWheelEvent.MiddleButton
Qt3DInput.QWheelEvent.BackButton
Qt3DInput.QWheelEvent.NoButton
- class Modifiers¶
Constant
Description
Qt3DInput.QWheelEvent.NoModifier
Qt3DInput.QWheelEvent.ShiftModifier
Qt3DInput.QWheelEvent.ControlModifier
Qt3DInput.QWheelEvent.AltModifier
Qt3DInput.QWheelEvent.MetaModifier
Qt3DInput.QWheelEvent.KeypadModifier
Note
Properties can be used directly when
from __feature__ import true_propertyis used or via accessor functions otherwise.- property acceptedᅟ: bool¶
Specifies if the mouse wheel event has been accepted
- Access functions:
Specifies The change wheel angle of the mouse wheel event
- Access functions:
- property buttonsᅟ: int¶
Specifies the button if present in the mouse wheel event
- Access functions:
- property modifiersᅟ: Qt3DInput.QWheelEvent.Modifiers¶
Specifies if any modifiers were applied to the mouse wheel event
- Access functions:
- property xᅟ: int¶
Specifies The X coordinate of the mouse wheel event
- Access functions:
- property yᅟ: int¶
Specifies The Y coordinate of the mouse wheel event
- Access functions:
- __init__(e)¶
- Parameters:
e –
QWheelEvent
Constructs a new
QWheelEventinstance from theQWheelEvente.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).
Getter of property
angleDeltaᅟ.- buttons()¶
- Return type:
int
Returns a bitfield to be used to check for mouse buttons that may be accompanying the wheel event.
Getter of property
buttonsᅟ.- isAccepted()¶
- Return type:
bool
Returns whether the event was accepted.
Getter of property
acceptedᅟ.- modifiers()¶
- Return type:
Modifiers
Returns the keyboard modifiers that may be accompanying the wheel event.
Getter of property
modifiersᅟ.- setAccepted(accepted)¶
- Parameters:
accepted – bool
Sets the event as accepted if
acceptedis true.Note
When an event is accepted, it will prevent further propagation to other listeners.
See also
isAccepted()Setter of property
acceptedᅟ.Returns the QEvent::Type of the event.
- x()¶
- Return type:
int
Returns the x position of the mouse event.
Getter of property
xᅟ.- y()¶
- Return type:
int
Returns the x position of the mouse event.
Getter of property
yᅟ.