이 페이지에서

QSensorChangesInterface Class

QSensorChangesInterface 클래스는 센서 플러그인을 위한 순수 가상 인터페이스입니다. 더 보기...

헤더: #include <QSensorChangesInterface>
CMake: find_package(Qt6 REQUIRED COMPONENTS Sensors)
target_link_libraries(mytarget PRIVATE Qt6::Sensors)
qmake: QT += sensors

공개 함수

virtual void sensorsChanged() = 0

상세 설명

QSensorChangesInterface 클래스는 등록된 센서 백엔드의 변경 사항을 알림으로 수신하기 위해 센서 플러그인에 구현됩니다.

‘센서 플러그인 만들기’항목도 참조하십시오 .

멤버 함수 문서

[pure virtual] void QSensorChangesInterface::sensorsChanged()

이 함수는 등록된 백엔드가 변경되었을 때 호출됩니다. 다른 센서의 존재 여부에 의존하는 백엔드는 이곳에서 등록하거나 등록을 해제해야 합니다.

‘센서 플러그인 만들기’항목도 참조하십시오 .

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