En esta página

QAmbientTemperatureReading Class

La clase `QAmbientTemperatureReading` almacena las lecturas de la temperatura ambiente. Más información...

Encabezado: #include <QAmbientTemperatureReading>
CMake: find_package(Qt6 REQUIRED COMPONENTS Sensors)
target_link_libraries(mytarget PRIVATE Qt6::Sensors)
qmake: QT += sensors
Heredado de: 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 expresada en grados Celsius.

Documentación de la propiedad

[read-only] temperature : qreal

Esta propiedad indica la temperatura ambiente

medida en grados Celsius.

Funciones de acceso:

qreal temperature() const

Documentación de las 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.