The QLidReading class holds readings from the Lid sensor. 更多...
头: | #include <QLidReading> |
qmake: | QT += sensors |
Since: | Qt 5.9 |
继承: | QSensorReading |
QLidReading (QObject * parent = DECLARE_READING(QLidReading)) | |
virtual | ~QLidReading () |
bool | backLidClosed () const |
bool | frontLidClosed () const |
void | setBackLidClosed (bool closed ) |
void | setFrontLidClosed (bool closed ) |
virtual void | copyValuesFrom (QSensorReading * other ) override |
void | backLidChanged (bool closed ) |
void | frontLidChanged (bool closed ) |
const QMetaObject | staticMetaObject |
The QLidReading class holds readings from the Lid sensor.
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.
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.
访问函数:
bool | backLidClosed () const |
另请参阅 QLidReading Units .
This property holds a value indicating whether the front lid is closed. A front lid would be a normal laptop lid.
访问函数:
bool | frontLidClosed () const |
另请参阅 QLidReading Units .
Default constructs an instance of QLidReading.
[虚拟]
QLidReading::
~QLidReading
()
Destroys the instance of QLidReading. The destructor is virtual.
[signal]
void
QLidReading::
backLidChanged
(
bool
closed
)
[override virtual]
void
QLidReading::
copyValuesFrom
(
QSensorReading
*
other
)
[signal]
void
QLidReading::
frontLidChanged
(
bool
closed
)
设置 backLidClosed value to closed .
另请参阅 backLidClosed ().
设置 frontLidClosed value to closed .
另请参阅 frontLidClosed ().