IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)

QLightReading Class

The QLightReading class represents one reading from the light sensor.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

QLightReading Class

  • Header: QLightReading

  • CMake:

    find_package(Qt6 REQUIRED COMPONENTS Sensors)

    target_link_libraries(mytarget PRIVATE Qt6::Sensors)

  • qmake: QT += sensors

  • Inherits: QSensorReading

  • Group: QLightReading is part of sensors_reading

Detailed Description

 

QLightReading Units

The light sensor returns the intensity of the light in lux.

Property Documentation

 

[read-only] lux : const qreal

This property holds the light level.

Measured as lux.

Access functions:

  • lux() const

See Also

Member Function Documentation

 

void QLightReading::setLux(qreal lux)

Sets the light level to lux.

See Also

See also lux()

Vous avez aimé ce tutoriel ? Alors partagez-le en cliquant sur les boutons suivants : Viadeo Twitter Facebook Share on Google+