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
QMouseDevicedelegates mouse events from physical mouse device toQMouseHandlerobjects. The sensitivity of the mouse can be controlled with thesensitivityproperty, which specifies the rate in which the logical mouse coordinates change in response to physical movement of the mouse.See also
QMouseHandler
- class PySide2.Qt3DInput.Qt3DInput.QMouseDevice([parent=None])露
- param parent:
Constructs a new
QMouseDeviceinstance with parentparent.
- PySide2.Qt3DInput.Qt3DInput.QMouseDevice.Axis露
The mouse axis.
Constant
Description
Qt3DInput.QMouseDevice.X
Qt3DInput.QMouseDevice.Y
Qt3DInput.QMouseDevice.WheelX
Qt3DInput.QMouseDevice.WheelY
See also
- PySide2.Qt3DInput.Qt3DInput.QMouseDevice.sensitivity()露
- Return type:
float
Holds the sensitivity of the mouse device. The default is 0.1.
- PySide2.Qt3DInput.Qt3DInput.QMouseDevice.sensitivityChanged(value)露
- Parameters:
value 鈥� float
- PySide2.Qt3DInput.Qt3DInput.QMouseDevice.setSensitivity(value)露
- Parameters:
value 鈥� float
Holds the sensitivity of the mouse device. The default is 0.1.
- PySide2.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.
- PySide2.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.
- PySide2.Qt3DInput.Qt3DInput.QMouseDevice.updateAxesContinuouslyChanged(updateAxesContinuously)露
- Parameters:
updateAxesContinuously 鈥� bool
漏 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.