QHumiditySensor Class
A classe QHumiditySensor é um wrapper de conveniência para QSensor. Mais...
| Cabeçalho: | #include <QHumiditySensor> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Sensors) target_link_libraries(mytarget PRIVATE Qt6::Sensors) |
| qmake: | QT += sensors |
| Herdado de: | QSensor |
Funções públicas
| QHumiditySensor(QObject *parent = nullptr) | |
| virtual | ~QHumiditySensor() |
| QHumidityReading * | reading() const |
Descrição detalhada
A única diferença comportamental é que esta classe define o tipo corretamente.
Essa classe também possui uma função ` reading()` que retorna um ` QHumidityReading ` em vez de um ` QSensorReading`.
Para obter detalhes sobre como o sensor funciona, consulte QHumidityReading.
Consulte também ` QHumidityReading`.
Documentação da função membro
[explicit] QHumiditySensor::QHumiditySensor(QObject *parent = nullptr)
Crie o sensor como um elemento filho de parent.
[virtual noexcept] QHumiditySensor::~QHumiditySensor()
Destrua o sensor. Interrompe o sensor, caso ele ainda não tenha sido interrompido.
QHumidityReading *QHumiditySensor::reading() const
Retorna a classe de leitura deste sensor.
Veja também ` QSensor::reading()`.
© 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.