QAmbientTemperatureSensor Class

QAmbientTemperatureSensor クラスは、QSensor の便利なラッパーです。さらに...

ヘッダー #include <QAmbientTemperatureSensor>
CMake: find_package(Qt6 REQUIRED COMPONENTS Sensors)
target_link_libraries(mytarget PRIVATE Qt6::Sensors)
qmake: QT += sensors
継承: QSensor

パブリック関数

QAmbientTemperatureSensor(QObject *parent = nullptr)
virtual ~QAmbientTemperatureSensor()
QAmbientTemperatureReading *reading() const

詳細説明

唯一の動作上の違いは、このクラスが型を適切に設定することである。

また、このクラスはQSensorReading の代わりにQAmbientTemperatureReading を返すreading() 関数を備えている。

センサーの動作の詳細については、QAmbientTemperatureReading を参照してください。

QAmbientTemperatureReadingも参照

メンバ関数のドキュメント

[explicit] QAmbientTemperatureSensor::QAmbientTemperatureSensor(QObject *parent = nullptr)

parent の子としてセンサーを構築する。

[virtual noexcept] QAmbientTemperatureSensor::~QAmbientTemperatureSensor()

センサーを破壊する。センサーがまだ停止していなければ停止する。

QAmbientTemperatureReading *QAmbientTemperatureSensor::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.