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() メソッドで登録する必要があります。
センサープラグインの作成も参照してください 。
© 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.