QLidReading Class

The QLidReading class holds readings from the Lid sensor. More...

Header: #include <QLidReading>
qmake: QT += sensors
Since: Qt 5.9
Inherits: QSensorReading

Properties

Public Functions

bool backLidClosed() const
bool frontLidClosed() const
void setBackLidClosed(bool closed)
void setFrontLidClosed(bool closed)

Signals

void backLidChanged(bool closed)
void frontLidChanged(bool closed)

Additional Inherited Members

  • 1 public slot inherited from QObject
  • 11 static public members inherited from QObject
  • 9 protected functions inherited from QObject

Detailed Description

The QLidReading class holds readings from the Lid sensor.

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

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 QLidReading Units.

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 QLidReading Units.

Member Function Documentation

[signal] void QLidReading::backLidChanged(bool closed)

[signal] void QLidReading::frontLidChanged(bool closed)

void QLidReading::setBackLidClosed(bool closed)

Sets the backLidClosed value to closed.

See also backLidClosed().

void QLidReading::setFrontLidClosed(bool closed)

Sets the frontLidClosed value to closed.

See also frontLidClosed().

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