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 |
상세 설명
센서 백엔드를 QSensorManager 에 등록하기 위해 센서 플러그인에서 구현되는 QSensorPluginInterface 클래스입니다.
센서 플러그인 만들기를참조하십시오 .
멤버 함수 문서
[pure virtual]
void QSensorPluginInterface::registerSensors()
이 함수는 플러그인이 로드될 때 호출됩니다. 플러그인은 QSensorManager::registerBackend()를 호출하여 센서 백엔드를 등록해야 합니다. 다른 센서를 사용하는 백엔드는 QSensorPluginInterface::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.