QMouseEvent¶
The Qt3DCore::QMouseEvent contains parameters that describe a mouse event. More…
Synopsis¶
Functions¶
def
button
()def
buttons
()def
isAccepted
()def
modifiers
()def
setAccepted
(accepted)def
type
()def
wasHeld
()def
x
()def
y
()
Detailed Description¶
Mouse events occur when a mouse button is pressed and the ray traversing the view, originating from the mouse position intersects with one or more elements of the scene.
See also
QKeyEvent
QWheelEvent
QMouseHandler
- class PySide2.Qt3DInput.Qt3DInput.QMouseEvent¶
- PySide2.Qt3DInput.Qt3DInput.QMouseEvent.Buttons¶
Constant
Description
Qt3DInput.QMouseEvent.LeftButton
Qt3DInput.QMouseEvent.RightButton
Qt3DInput.QMouseEvent.MiddleButton
Qt3DInput.QMouseEvent.BackButton
Qt3DInput.QMouseEvent.NoButton
- PySide2.Qt3DInput.Qt3DInput.QMouseEvent.Modifiers¶
Constant
Description
Qt3DInput.QMouseEvent.NoModifier
Qt3DInput.QMouseEvent.ShiftModifier
Qt3DInput.QMouseEvent.ControlModifier
Qt3DInput.QMouseEvent.AltModifier
Qt3DInput.QMouseEvent.MetaModifier
Qt3DInput.QMouseEvent.KeypadModifier
- PySide2.Qt3DInput.Qt3DInput.QMouseEvent.button()¶
- Return type:
Specifies the button triggering the mouse event
- PySide2.Qt3DInput.Qt3DInput.QMouseEvent.buttons()¶
- Return type:
int
Specifies the button triggering the mouse event
- PySide2.Qt3DInput.Qt3DInput.QMouseEvent.isAccepted()¶
- Return type:
bool
Specifies if the mouse event has been accepted
- PySide2.Qt3DInput.Qt3DInput.QMouseEvent.modifiers()¶
- Return type:
Specifies if any modifiers were applied to the mouse event
- PySide2.Qt3DInput.Qt3DInput.QMouseEvent.setAccepted(accepted)¶
- Parameters:
accepted – bool
Specifies if the mouse event has been accepted
- PySide2.Qt3DInput.Qt3DInput.QMouseEvent.wasHeld()¶
- Return type:
bool
Specifies if a mouse button was held down during the mouse event
- PySide2.Qt3DInput.Qt3DInput.QMouseEvent.x()¶
- Return type:
int
Specifies The X coordinate of the mouse event
- PySide2.Qt3DInput.Qt3DInput.QMouseEvent.y()¶
- Return type:
int
Specifies The y coordinate of the mouse event
© 2022 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.