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

QLidReading Class

The QLidReading class holds readings from the Lid sensor.

This class was introduced in Qt 5.9.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

QLidReading Class

  • Header: QLidReading

  • Since: Qt 5.9

  • qmake: QT += sensors

  • Inherits: QSensorReading

  • Group: QLidReading is part of sensors_reading

Detailed Description

A normal laptop has what we call a front lid.

If the laptop can be converted to a tablet by rotating or closing the lid where the display is out, this is known as a back lid.

QLidReading Units

The Lid sensor can detect if a device's lid is closed or not. A lid can be a laptop, a laptop that converts to a tablet, or even a cover for a tablet or phone.

Property Documentation

 

[read-only] backLidClosed : const bool

This property holds a value indicating whether the back lid is closed. A back lid can be when a convertable laptop is closed into to tablet mode without keyboard.

Access functions:

  • bool backLidClosed() const

See Also

[read-only] frontLidClosed : const bool

This property holds a value indicating whether the front lid is closed. A front lid would be a normal laptop lid.

Access functions:

  • bool frontLidClosed() const

See Also

Member Function Documentation

 

void QLidReading::setBackLidClosed(bool closed)

Sets the backLidClosed value to closed.

See Also

See also backLidClosed()

void QLidReading::setFrontLidClosed(bool closed)

Sets the frontLidClosed value to closed.

See Also

See also frontLidClosed()

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