QTiltReading Class
A classe QTiltReading armazena as leituras do sensor de inclinação. Mais...
| Cabeçalho: | #include <QTiltReading> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Sensors) target_link_libraries(mytarget PRIVATE Qt6::Sensors) |
| qmake: | QT += sensors |
| Herdado de: | QSensorReading |
Propriedades
Funções públicas
| void | setXRotation(qreal x) |
| void | setYRotation(qreal y) |
| qreal | xRotation() const |
| qreal | yRotation() const |
Descrição detalhada
O sensor de inclinação informa o ângulo de inclinação, em graus, do dispositivo nos planos X e Y.
Documentação das propriedades
[read-only] xRotation : qreal
Esta propriedade indica o valor da inclinação no eixo X, medido em graus.
Funções de acesso:
| qreal | xRotation() const |
[read-only] yRotation : qreal
Esta propriedade indica o valor da inclinação no eixo Y, medido em graus.
Funções de acesso:
| qreal | yRotation() const |
© 2026 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.