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 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 toclosed
.See also
- PySide2.QtSensors.QLidReading.setFrontLidClosed(closed)¶
- Parameters:
closed – bool
Sets the
frontLidClosed
value toclosed
.See also
© 2022 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.