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

QProximityReading Class

The QProximityReading class represents one reading from the proximity sensor.

This class was introduced in Qt 5.1.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

QProximityReading Class

  • Header: QProximityReading

  • Since: Qt 5.1

  • CMake:

    find_package(Qt6 REQUIRED COMPONENTS Sensors)

    target_link_libraries(mytarget PRIVATE Qt6::Sensors)

  • qmake: QT += sensors

  • Inherits: QSensorReading

  • Group: QProximityReading is part of sensors_reading

Detailed Description

 

The proximity sensor can only indicate if an object is close or not.

The distance at which an object is considered close is device-specific. This distance may be available in the QSensor::outputRanges property.

Property Documentation

 

[read-only] close : const bool

This property holds a value indicating if something is close.

Set to true if something is close. Set to false is nothing is close.

Access functions:

  • bool close() const

See Also

Member Function Documentation

 

void QProximityReading::setClose(bool close)

Sets the close value to close.

See Also

See also close()

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