이 페이지에서

QSensorBackendFactory Class

QSensorBackendFactory 클래스는 QSensorBackend 의 인스턴스를 생성합니다. 더 보기...

헤더: #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을 반환해야 합니다.

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