QAmbientLightReading Class

QAmbientLightReading 클래스는 주변광 센서의 판독값 하나를 나타냅니다. 더 보기...

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

공용 유형

enum LightLevel { Undefined, Dark, Twilight, Light, Bright, Sunny }

속성

공공 기능

QAmbientLightReading::LightLevel lightLevel() const
void setLightLevel(QAmbientLightReading::LightLevel lightLevel)

상세 설명

QAmbientLightReading Units

주변광 센서는 QAmbientLightReading::LightLevel 열거형에 있는 사전 정의된 값을 사용하여 주변광의 강도를 반환합니다.

멤버 유형 문서

enum QAmbientLightReading::LightLevel

이 열거형은 주변 조명 수준을 나타냅니다.

Constant설명
QAmbientLightReading::Undefined0조명 레벨을 알 수 없습니다.
QAmbientLightReading::Dark1어둡습니다.
QAmbientLightReading::Twilight2적당히 어둡습니다.
QAmbientLightReading::Light3밝습니다(예: 내부 조명).
QAmbientLightReading::Bright4밝습니다(예: 그늘).
QAmbientLightReading::Sunny5매우 밝습니다(예: 직사광선).

속성 문서

[read-only] lightLevel : const LightLevel

이 프로퍼티는 주변광 레벨을 보유합니다.

이 값은 주변 조명을 나타내며 QAmbientLightReading::LightLevel 에서 가져옵니다.

함수에 액세스합니다:

QAmbientLightReading::LightLevel lightLevel() const

QAmbientLightReading Units참조하세요 .

멤버 함수 문서

void QAmbientLightReading::setLightLevel(QAmbientLightReading::LightLevel lightLevel)

주변 조명 수준을 lightLevel 으로 설정합니다.

lightLevel()도 참조하세요 .

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