QMouseDevice#
Delegates mouse events to the attached MouseHandler objects. More…
Synopsis#
Properties#
Functions#
def
sensitivity
()def
updateAxesContinuously
()
Slots#
def
setSensitivity
(value)def
setUpdateAxesContinuously
(updateAxesContinuously)
Signals#
def
sensitivityChanged
(value)def
updateAxesContinuouslyChanged
(updateAxesContinuously)
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 PySide6.Qt3DInput.Qt3DInput.QMouseDevice([parent=None])#
- Parameters:
parent –
PySide6.Qt3DCore.Qt3DCore.QNode
Constructs a new QMouseDevice
instance with parent parent
.
Note
Properties can be used directly when from __feature__ import true_property
is used or via accessor functions otherwise.
- property PᅟySide6.Qt3DInput.Qt3DInput.QMouseDevice.sensitivity: float#
Holds the sensitivity of the mouse device. The default is 0.1.
- Access functions:
sensitivity
()setSensitivity
(value)Signal
sensitivityChanged
(value)
- property PᅟySide6.Qt3DInput.Qt3DInput.QMouseDevice.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:
setUpdateAxesContinuously
(updateAxesContinuously)Signal
updateAxesContinuouslyChanged
(updateAxesContinuously)
- 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
See also
Getter of property sensitivity
.
- PySide6.Qt3DInput.Qt3DInput.QMouseDevice.sensitivityChanged(value)#
- Parameters:
value – float
Notification signal of property sensitivity
.
- PySide6.Qt3DInput.Qt3DInput.QMouseDevice.setSensitivity(value)#
- Parameters:
value – float
See also
Setter of property sensitivity
.
- PySide6.Qt3DInput.Qt3DInput.QMouseDevice.setUpdateAxesContinuously(updateAxesContinuously)#
- Parameters:
updateAxesContinuously – bool
See also
Setter of property updateAxesContinuously
.
- PySide6.Qt3DInput.Qt3DInput.QMouseDevice.updateAxesContinuously()#
- Return type:
bool
See also
Getter of property updateAxesContinuously
.
- PySide6.Qt3DInput.Qt3DInput.QMouseDevice.updateAxesContinuouslyChanged(updateAxesContinuously)#
- Parameters:
updateAxesContinuously – bool
Notification signal of property updateAxesContinuously
.