QMouseHandler

Provides a means of being notified about mouse events when attached to a QMouseDevice instance. More

Synopsis

Functions

Slots

Signals

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.QMouseHandler([parent=None])
param parent

PySide2.Qt3DCore.QNode

Constructs a new QMouseHandler instance with parent parent .

PySide2.Qt3DInput.QMouseHandler.clicked(mouse)
Parameters

mousePySide2.Qt3DInput.QMouseEvent

PySide2.Qt3DInput.QMouseHandler.containsMouse()
Return type

bool

Holds true if the QMouseHandler 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 current QMouseHandler instance component.

PySide2.Qt3DInput.QMouseHandler.containsMouseChanged(containsMouse)
Parameters

containsMouse – bool

PySide2.Qt3DInput.QMouseHandler.doubleClicked(mouse)
Parameters

mousePySide2.Qt3DInput.QMouseEvent

PySide2.Qt3DInput.QMouseHandler.entered()
PySide2.Qt3DInput.QMouseHandler.exited()
PySide2.Qt3DInput.QMouseHandler.positionChanged(mouse)
Parameters

mousePySide2.Qt3DInput.QMouseEvent

PySide2.Qt3DInput.QMouseHandler.pressAndHold(mouse)
Parameters

mousePySide2.Qt3DInput.QMouseEvent

PySide2.Qt3DInput.QMouseHandler.pressed(mouse)
Parameters

mousePySide2.Qt3DInput.QMouseEvent

PySide2.Qt3DInput.QMouseHandler.released(mouse)
Parameters

mousePySide2.Qt3DInput.QMouseEvent

PySide2.Qt3DInput.QMouseHandler.setContainsMouse(contains)
Parameters

contains – bool

See also

containsMouse()

PySide2.Qt3DInput.QMouseHandler.setSourceDevice(mouseDevice)
Parameters

mouseDevicePySide2.Qt3DInput.QMouseDevice

Holds the current mouse source device of the QMouseHandler instance.

PySide2.Qt3DInput.QMouseHandler.sourceDevice()
Return type

PySide2.Qt3DInput.QMouseDevice

Holds the current mouse source device of the QMouseHandler instance.

PySide2.Qt3DInput.QMouseHandler.sourceDeviceChanged(mouseDevice)
Parameters

mouseDevicePySide2.Qt3DInput.QMouseDevice

PySide2.Qt3DInput.QMouseHandler.wheel(wheel)
Parameters

wheelPySide2.Qt3DInput.QWheelEvent