QSensorPluginInterface Class
QSensorPluginInterface 클래스는 센서 플러그인을 위한 순수 가상 인터페이스입니다. 더 보기...
| 헤더: | #include <QSensorPluginInterface> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Sensors) target_link_libraries(mytarget PRIVATE Qt6::Sensors) |
| qmake: | QT += sensors |
공개 함수
| virtual void | registerSensors() = 0 |
상세 설명
QSensorPluginInterface 클래스는 센서 플러그인에서 구현되어 센서 백엔드를 QSensorManager 에 등록합니다.
‘센서 플러그인 만들기’도 참조하십시오 .
멤버 함수 문서
[pure virtual] void QSensorPluginInterface::registerSensors()
이 함수는 플러그인이 로드될 때 호출됩니다. 플러그인은 ` QSensorManager::registerBackend()`를 호출하여 센서 백엔드를 등록해야 합니다. 다른 센서를 활용하는 백엔드는 대신 `QSensorPluginInterface::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.