QCompassReading Class

QCompassReading 클래스는 나침반의 한 판독값을 나타냅니다. 더 보기...

Header: #include <QCompassReading>
CMake: find_package(Qt6 REQUIRED COMPONENTS Sensors)
target_link_libraries(mytarget PRIVATE Qt6::Sensors)
qmake: QT += sensors
상속합니다: QSensorReading

속성

공공 기능

qreal azimuth() const
qreal calibrationLevel() const
void setAzimuth(qreal azimuth)
void setCalibrationLevel(qreal calibrationLevel)

상세 설명

QCompassReading Units

나침반은 QScreen::nativeOrientation 에 정의된 대로 장치의 방위각을 장치 상단을 기준으로 자북에서 시계 방향의 도(度)로 반환합니다. 또한 장치의 보정 상태를 나타내는 값도 있습니다. 장치가 보정되지 않은 경우 방위각이 정확하지 않을 수 있습니다.

디지털 나침반은 자기 간섭에 영향을 받기 쉬우므로 자력을 방출하는 물건 근처에 두면 보정이 필요할 수 있습니다. 나침반의 정확도는 근처에 있는 철 물질에 의해 영향을 받을 수 있습니다.

장치의 보정 상태는 0에서 1 사이의 숫자로 측정됩니다. 1은 디바이스가 지원할 수 있는 최고 수준이고 0은 최악입니다.

속성 문서

[read-only] azimuth : const qreal

이 속성은 장치의 방위각을 보유합니다.

QScreen::nativeOrientation 에 정의된 대로 장치 상단을 기준으로 자북에서 시계 방향으로 각도 단위로 측정됩니다.

함수에 액세스합니다:

qreal azimuth() const

QCompassReading Units도 참조하세요 .

[read-only] calibrationLevel : const qreal

이 속성은 판독값의 보정 수준을 유지합니다.

0에서 1 사이의 값으로 측정되며 값이 클수록 좋습니다.

함수에 액세스합니다:

qreal calibrationLevel() const

QCompassReading Units참조하세요 .

멤버 함수 문서

void QCompassReading::setAzimuth(qreal azimuth)

장치의 azimuth 을 설정합니다.

azimuth() 및 QCompassReading Units도 참조하세요 .

void QCompassReading::setCalibrationLevel(qreal calibrationLevel)

판독값의 보정 수준을 calibrationLevel 으로 설정합니다.

calibrationLevel()도 참조하세요 .

© 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.