QTiltSensor Class
QTiltSensor 클래스는 QSensor 을 편리하게 감싸는 래퍼입니다. 더 보기...
헤더: | #include <QTiltSensor> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS Sensors) target_link_libraries(mytarget PRIVATE Qt6::Sensors) |
qmake: | QT += sensors |
상속합니다: | QSensor |
공용 함수
QTiltSensor(QObject *parent = nullptr) | |
virtual | ~QTiltSensor() |
void | calibrate() |
QTiltReading * | reading() const |
자세한 설명
유일한 동작상의 차이점은 이 클래스가 유형을 올바르게 설정한다는 것입니다.
이 클래스에는 QSensorReading 대신 QTiltReading 을 반환하는 reading() 함수도 있습니다.
센서 작동 방식에 대한 자세한 내용은 QTiltReading 을 참조하세요.
QTiltReading 를참조하세요 .
멤버 함수 문서
[explicit]
QTiltSensor::QTiltSensor(QObject *parent = nullptr)
센서를 parent 의 하위 항목으로 구성합니다.
[virtual noexcept]
QTiltSensor::~QTiltSensor()
센서를 파괴합니다. 센서가 아직 중지되지 않은 경우 센서를 중지합니다.
[invokable]
void QTiltSensor::calibrate()
기울기 센서를 보정합니다. 현재 기울기 각도를 0도로 사용합니다.
참고: 이 함수는 메타 객체 시스템과 QML을 통해 호출할 수 있습니다. Q_INVOKABLE 을 참조하세요.
QTiltReading *QTiltSensor::reading() const
이 센서의 판독 클래스를 반환합니다.
QSensor::reading()도 참조하세요 .
© 2025 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.