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 QLidReading(parent)
Parameters

parentQObject

PySide2.QtSensors.QLidReading.backLidChanged(closed)
Parameters

closedbool

PySide2.QtSensors.QLidReading.backLidClosed()
Return type

bool

PySide2.QtSensors.QLidReading.frontLidChanged(closed)
Parameters

closedbool

PySide2.QtSensors.QLidReading.frontLidClosed()
Return type

bool

PySide2.QtSensors.QLidReading.setBackLidClosed(closed)
Parameters

closedbool

Sets the backLidClosed value to closed .

See also

backLidClosed()

PySide2.QtSensors.QLidReading.setFrontLidClosed(closed)
Parameters

closedbool

Sets the frontLidClosed value to closed .

See also

frontLidClosed()