QLidReading露

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

Inheritance diagram of PySide2.QtSensors.QLidReading

Synopsis露

Functions露

Signals露

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鈥檚 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.

class PySide2.QtSensors.QLidReading(parent)露
Parameters:

parent 鈥� PySide2.QtCore.QObject

PySide2.QtSensors.QLidReading.backLidChanged(closed)露
Parameters:

closed 鈥� bool

PySide2.QtSensors.QLidReading.backLidClosed()露
Return type:

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

See also

QLidReading Units

PySide2.QtSensors.QLidReading.frontLidChanged(closed)露
Parameters:

closed 鈥� bool

PySide2.QtSensors.QLidReading.frontLidClosed()露
Return type:

bool

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

See also

QLidReading Units

PySide2.QtSensors.QLidReading.setBackLidClosed(closed)露
Parameters:

closed 鈥� bool

Sets the backLidClosed value to closed .

See also

backLidClosed()

PySide2.QtSensors.QLidReading.setFrontLidClosed(closed)露
Parameters:

closed 鈥� bool

Sets the frontLidClosed value to closed .

See also

frontLidClosed()