PySide6.QtSensors.QRotationSensor¶
- class QRotationSensor¶
The
QRotationSensorclass is a convenience wrapper aroundQSensor. More…Synopsis¶
Properties¶
hasZᅟ- Value indicating if the z angle is available
Methods¶
def
__init__()def
hasZ()def
setHasZ()
Signals¶
def
hasZChanged()
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¶
The only behavioural difference is that this class sets the type properly.
This class also features a
reading()function that returns aQRotationReadinginstead of aQSensorReading.For details about how the sensor works, see
QRotationReading.See also
Note
Properties can be used directly when
from __feature__ import true_propertyis used or via accessor functions otherwise.- property hasZᅟ: bool¶
This property holds a value indicating if the z angle is available..
Returns true if z is available. Returns false if z is not available.
- Access functions:
Signal
hasZChanged()
- PySide6.QtSensors.QRotationSensor.sensorType¶
Construct the sensor as a child of
parent.Getter of property
hasZᅟ.- hasZChanged(hasZ)¶
- Parameters:
hasZ – bool
Notification signal of property
hasZᅟ.- setHasZ(hasZ)¶
- Parameters:
hasZ – bool
Sets whether the z angle is available to
hasZ. This is to be called from the backend. By default thehasZproperty is true, so a backend only has to call this if its rotation sensor can not report z angles.See also