QMouseDevice#
Delegates mouse events to the attached MouseHandler objects. More…
Synopsis#
Functions#
def
sensitivity
()def
updateAxesContinuously
()
Slots#
def
setSensitivity
(value)def
setUpdateAxesContinuously
(updateAxesContinuously)
Signals#
def
sensitivityChanged
(value)def
updateAxesContinuouslyChanged
(updateAxesContinuously)
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 PySide6.Qt3DInput.Qt3DInput.QMouseDevice([parent=None])#
- Parameters
parent –
PySide6.Qt3DCore.Qt3DCore.QNode
Constructs a new QMouseDevice
instance with parent parent
.
- PySide6.Qt3DInput.Qt3DInput.QMouseDevice.Axis#
The mouse axis.
Constant
Description
Qt3DInput.QMouseDevice.X
Qt3DInput.QMouseDevice.Y
Qt3DInput.QMouseDevice.WheelX
Qt3DInput.QMouseDevice.WheelY
See also
- PySide6.Qt3DInput.Qt3DInput.QMouseDevice.sensitivity()#
- Return type
float
Holds the sensitivity of the mouse device. The default is 0.1.
- PySide6.Qt3DInput.Qt3DInput.QMouseDevice.sensitivityChanged(value)#
- Parameters
value – float
- PySide6.Qt3DInput.Qt3DInput.QMouseDevice.setSensitivity(value)#
- Parameters
value – float
Holds the sensitivity of the mouse device. The default is 0.1.
- PySide6.Qt3DInput.Qt3DInput.QMouseDevice.setUpdateAxesContinuously(updateAxesContinuously)#
- Parameters
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
.
- PySide6.Qt3DInput.Qt3DInput.QMouseDevice.updateAxesContinuously()#
- Return type
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
.
- PySide6.Qt3DInput.Qt3DInput.QMouseDevice.updateAxesContinuouslyChanged(updateAxesContinuously)#
- Parameters
updateAxesContinuously – bool