PySide6.Qt3DInput.Qt3DInput.QMouseDevice

class QMouseDevice

Delegates mouse events to the attached MouseHandler objects. More

Inheritance diagram of PySide6.Qt3DInput.Qt3DInput.QMouseDevice

Synopsis

Properties

Methods

Slots

Signals

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

A QMouseDevice delegates mouse events from physical mouse device to QMouseHandler objects. The sensitivity of the mouse can be controlled with the sensitivity property, which specifies the rate in which the logical mouse coordinates change in response to physical movement of the mouse.

See also

QMouseHandler

class Axis

The mouse axis.

Constant

Description

Qt3DInput.QMouseDevice.X

Qt3DInput.QMouseDevice.Y

Qt3DInput.QMouseDevice.WheelX

Qt3DInput.QMouseDevice.WheelY

See also

setAxis

Note

Properties can be used directly when from __feature__ import true_property is used or via accessor functions otherwise.

property sensitivityᅟ: float

Holds the sensitivity of the mouse device. The default is 0.1.

Access functions:
property updateAxesContinuouslyᅟ: bool

If true, axes will be updated anytime they change regardless of whether any mouse button is being pressed. Otherwise, axes are updated only when one of the mouse buttons is being pressed.

The default value is false.

Access functions:
__init__([parent=None])
Parameters:

parentQNode

Constructs a new QMouseDevice instance with parent parent.

sensitivity()
Return type:

float

See also

setSensitivity()

Getter of property sensitivityᅟ .

sensitivityChanged(value)
Parameters:

value – float

Notification signal of property sensitivityᅟ .

setSensitivity(value)
Parameters:

value – float

See also

sensitivity()

Setter of property sensitivityᅟ .

setUpdateAxesContinuously(updateAxesContinuously)
Parameters:

updateAxesContinuously – bool

See also

updateAxesContinuously()

Setter of property updateAxesContinuouslyᅟ .

updateAxesContinuously()
Return type:

bool

See also

setUpdateAxesContinuously()

Getter of property updateAxesContinuouslyᅟ .

updateAxesContinuouslyChanged(updateAxesContinuously)
Parameters:

updateAxesContinuously – bool

Notification signal of property updateAxesContinuouslyᅟ .