En esta página

QAmbientTemperatureReading Class

La clase QAmbientTemperatureReading contiene lecturas de la temperatura ambiente. Más...

Cabecera: #include <QAmbientTemperatureReading>
CMake: find_package(Qt6 REQUIRED COMPONENTS Sensors)
target_link_libraries(mytarget PRIVATE Qt6::Sensors)
qmake: QT += sensors
Hereda: QSensorReading

Propiedades

Funciones públicas

void setTemperature(qreal temperature)
qreal temperature() const

Descripción detallada

La temperatura ambiente (de la habitación) es la temperatura en grados Celsius.

Propiedad Documentación

[read-only] temperature : qreal

Esta propiedad mantiene la temperatura ambiente

Medida en grados centígrados.

Funciones de acceso:

qreal temperature() const

Documentación de funciones miembro

void QAmbientTemperatureReading::setTemperature(qreal temperature)

Establece la temperatura ambiente en temperature.

Véase también temperature().

© 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.