QProximitySensor Class
QProximitySensor クラスはQSensor の便利なラッパーです。詳細...
ヘッダー | #include <QProximitySensor> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS Sensors) target_link_libraries(mytarget PRIVATE Qt6::Sensors) |
qmake: | QT += sensors |
継承: | QSensor |
パブリック関数
QProximitySensor(QObject *parent = nullptr) | |
virtual | ~QProximitySensor() |
QProximityReading * | reading() const |
詳細説明
唯一の動作上の違いは、このクラスが型を適切に設定することである。
また、このクラスはQSensorReading の代わりにQProximityReading を返すreading() 関数を備えている。
センサーの動作の詳細については、QProximityReading を参照してください。
QProximityReadingも参照 。
メンバ関数のドキュメント
[explicit]
QProximitySensor::QProximitySensor(QObject *parent = nullptr)
parent の子としてセンサーを構築する。
[virtual noexcept]
QProximitySensor::~QProximitySensor()
センサーを破壊する。センサーがまだ停止していなければ停止する。
QProximityReading *QProximitySensor::reading() const
このセンサーの読み取りクラスを返します。
QSensor::reading()も参照 。
© 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.