QProximityReading Class
QProximityReading クラスは、近接センサーからの 1 回の読み取り結果を表します。詳細...
| ヘッダー: | #include <QProximityReading> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Sensors) target_link_libraries(mytarget PRIVATE Qt6::Sensors) |
| qmake: | QT += sensors |
| 継承元: | QSensorReading |
プロパティ
- close : bool
パブリック関数
詳細な説明
近接センサーは、物体が近くにあるかどうかを示すことしかできません。
どの距離を「近く」とみなすかは、デバイスによって異なります。この距離は、QSensor::outputRanges プロパティで確認できる場合があります。
プロパティのドキュメント
[read-only] close : bool
このプロパティには、何かが近くにあるかどうかを示す値が格納されます。
何かが近くにある場合は true に設定します。近くに何もない場合は false に設定します。
アクセス関数:
| bool | close() const |
QProximityReading_Unitsも参照してください 。
© 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.