Qt Sensors バックエンド
Qt Sensors バックエンドは、Qt Sensors APIをプラットフォームサービスやハードウェアセンサーに接続します。
概要
QSensor インスタンスはバックエンドオブジェクトと通信します。バックエンドは通常、特定のデバイス用のQt Sensors ライブラリに付属していますが、サードパーティ製のバックエンドを使用することも可能です。 バックエンドは、ハードウェアと直接通信することも、システムサービスと通信することもできます。場合によっては、別のセンサーと通信することさえ可能です。その一例として、加速度センサーと通信してデバイスの向きを判定する、方位センサー用バックエンドが挙げられます。
バックエンドクラス
Sensors API を通じてセンサーを提供する場合、以下のクラスを使用します。
センサーの実装 | |
QSensorBackendのインスタンスを作成します | |
センサープラグイン向けの純粋仮想インターフェース | |
センサーバックエンドの登録と作成を処理します | |
センサープラグイン向けの純粋仮想インターフェース |
バックエンドのトピック
© 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.