QLidReadingclass holds readings from the Lid sensor. 更多 …
def
backLidClosed
()
def
frontLidClosed
()
def
setBackLidClosed
(closed)
def
setFrontLidClosed
(closed)
def
backLidChanged
(closed)
def
frontLidChanged
(closed)
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.
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.
QLidReading
(
parent
)
¶
parent
–
QObject
PySide2.QtSensors.QLidReading.
backLidChanged
(
closed
)
¶
closed
–
bool
PySide2.QtSensors.QLidReading.
backLidClosed
(
)
¶
bool
另请参阅
PySide2.QtSensors.QLidReading.
frontLidChanged
(
closed
)
¶
closed
–
bool
PySide2.QtSensors.QLidReading.
frontLidClosed
(
)
¶
bool
另请参阅
PySide2.QtSensors.QLidReading.
setBackLidClosed
(
closed
)
¶
closed
–
bool
设置
backLidClosed
value to
closed
.
另请参阅
PySide2.QtSensors.QLidReading.
setFrontLidClosed
(
closed
)
¶
closed
–
bool
设置
frontLidClosed
value to
closed
.
另请参阅