QSensorBackendFactory Class

QSensorBackendFactory 클래스는 QSensorBackend 의 인스턴스를 인스턴스화합니다.. ..

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

공용 함수

virtual QSensorBackend *createBackend(QSensor *sensor) = 0

상세 설명

센서 백엔드를 등록하려면 이 인터페이스를 구현해야 합니다.

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

멤버 함수 문서

[pure virtual] QSensorBackend *QSensorBackendFactory::createBackend(QSensor *sensor)

백엔드를 인스턴스화합니다. 팩토리에서 여러 식별자를 처리하는 경우 sensor 에서 어떤 식별자가 요청되었는지 확인해야 합니다.

팩토리에서 백엔드를 만들 수 없는 경우 0을 반환해야 합니다.

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