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()

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

센서 플러그인 만들기를참조하세요 .

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