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 を返す必要があります。
© 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.