QCompass Class
QCompass 클래스는 QSensor 을 편리하게 사용할 수 있도록 감싸는 래퍼입니다. 더 보기...
| 헤더: | #include <QCompass> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Sensors) target_link_libraries(mytarget PRIVATE Qt6::Sensors) |
| qmake: | QT += sensors |
| 상속: | QSensor |
공개 함수
상세 설명
유일한 동작상의 차이점은 이 클래스가 유형을 올바르게 설정한다는 점입니다.
또한 이 클래스에는 QSensorReading 대신 QCompassReading 를 반환하는 reading() 함수가 있습니다.
센서의 작동 방식에 대한 자세한 내용은 QCompassReading 를 참조하십시오.
QCompassReading도 참조하십시오 .
멤버 함수 설명서
[explicit] QCompass::QCompass(QObject *parent = nullptr)
parent 의 자식 노드로 센서를 생성합니다.
[virtual noexcept] QCompass::~QCompass()
센서를 파괴합니다. 센서가 아직 중지되지 않은 경우 중지시킵니다.
QCompassReading *QCompass::reading() const
이 센서의 판독 클래스를 반환합니다.
QSensor::reading()도 참조하십시오 .
© 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.