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

Synopsis¶
Functions¶
def
backLidClosed
()def
frontLidClosed
()def
setBackLidClosed
(closed)def
setFrontLidClosed
(closed)
Signals¶
def
backLidChanged
(closed)def
frontLidChanged
(closed)
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
parent –
QObject
-
PySide2.QtSensors.QLidReading.
backLidChanged
(closed)¶ - Parameters
closed –
bool
-
PySide2.QtSensors.QLidReading.
backLidClosed
()¶ - Return type
bool
See also
-
PySide2.QtSensors.QLidReading.
frontLidChanged
(closed)¶ - Parameters
closed –
bool
-
PySide2.QtSensors.QLidReading.
frontLidClosed
()¶ - Return type
bool
See also
-
PySide2.QtSensors.QLidReading.
setBackLidClosed
(closed)¶ - Parameters
closed –
bool
Sets the
backLidClosed
value toclosed
.See also
-
PySide2.QtSensors.QLidReading.
setFrontLidClosed
(closed)¶ - Parameters
closed –
bool
Sets the
frontLidClosed
value toclosed
.See also