QMouseHandler¶
Provides a means of being notified about mouse events when attached to a
QMouseDevice
instance. More…
Synopsis¶
Functions¶
def
containsMouse
()def
setContainsMouse
(contains)def
sourceDevice
()
Slots¶
def
setSourceDevice
(mouseDevice)
Signals¶
def
clicked
(mouse)def
containsMouseChanged
(containsMouse)def
doubleClicked
(mouse)def
entered
()def
exited
()def
positionChanged
(mouse)def
pressAndHold
(mouse)def
pressed
(mouse)def
released
(mouse)def
sourceDeviceChanged
(mouseDevice)def
wheel
(wheel)
Detailed Description¶
Note
QMouseHandler
components shouldn’t be shared, not respecting that condition will most likely result in undefined behaviors.See also
QMouseDevice
QMouseEvent
- class PySide2.Qt3DInput.Qt3DInput.QMouseHandler([parent=None])¶
- param parent:
Constructs a new
QMouseHandler
instance with parentparent
.
- PySide2.Qt3DInput.Qt3DInput.QMouseHandler.clicked(mouse)¶
- Parameters:
- PySide2.Qt3DInput.Qt3DInput.QMouseHandler.containsMouse()¶
- Return type:
bool
Holds
true
if theQMouseHandler
currently contains the mouse.Note
In this context, contains mean that the ray originating from the mouse is intersecting with the
QEntity
that aggregates the currentQMouseHandler
instance component.
- PySide2.Qt3DInput.Qt3DInput.QMouseHandler.containsMouseChanged(containsMouse)¶
- Parameters:
containsMouse – bool
- PySide2.Qt3DInput.Qt3DInput.QMouseHandler.doubleClicked(mouse)¶
- Parameters:
- PySide2.Qt3DInput.Qt3DInput.QMouseHandler.entered()¶
- PySide2.Qt3DInput.Qt3DInput.QMouseHandler.exited()¶
- PySide2.Qt3DInput.Qt3DInput.QMouseHandler.positionChanged(mouse)¶
- Parameters:
- PySide2.Qt3DInput.Qt3DInput.QMouseHandler.pressAndHold(mouse)¶
- Parameters:
- PySide2.Qt3DInput.Qt3DInput.QMouseHandler.pressed(mouse)¶
- Parameters:
- PySide2.Qt3DInput.Qt3DInput.QMouseHandler.released(mouse)¶
- Parameters:
- PySide2.Qt3DInput.Qt3DInput.QMouseHandler.setContainsMouse(contains)¶
- Parameters:
contains – bool
See also
- PySide2.Qt3DInput.Qt3DInput.QMouseHandler.setSourceDevice(mouseDevice)¶
- Parameters:
mouseDevice –
PySide2.Qt3DInput.Qt3DInput.QMouseDevice
Holds the current mouse source device of the
QMouseHandler
instance.
- PySide2.Qt3DInput.Qt3DInput.QMouseHandler.sourceDevice()¶
- Return type:
Holds the current mouse source device of the
QMouseHandler
instance.
- PySide2.Qt3DInput.Qt3DInput.QMouseHandler.sourceDeviceChanged(mouseDevice)¶
- Parameters:
mouseDevice –
PySide2.Qt3DInput.Qt3DInput.QMouseDevice
- PySide2.Qt3DInput.Qt3DInput.QMouseHandler.wheel(wheel)¶
- Parameters:
© 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.