QTiltReading 类保持来自倾斜传感器的读数。 更多...
头: | #include <QTiltReading> |
CMake: |
find_package(Qt6 REQUIRED COMPONENTS Sensors)
target_link_libraries(mytarget PRIVATE Qt6::Sensors) |
qmake: | QT += sensors |
继承: | QSensorReading |
void | setXRotation (qreal x ) |
void | setYRotation (qreal y ) |
qreal | xRotation () const |
qreal | yRotation () const |
倾斜传感器报告设备沿 X 和 Y 平面的倾斜角 (以度为单位)。
[read-only]
xRotation
: const
qreal
This property holds the amount of tilt on the X axis, measured in degrees.
访问函数:
qreal | xRotation () const |
[read-only]
yRotation
: const
qreal
This property holds the amount of tilt on the Y axis, measured in degrees.
访问函数:
qreal | yRotation () const |
设置 xRotation to x 度。
另请参阅 xRotation ().
设置 yRotation to y 度。
另请参阅 yRotation ().