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

class PySide2.QtSensors.QLidReading(parent)
Parameters

parentPySide2.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()