QLidReading Class
The QLidReading class holds readings from the Lid sensor. 更多...
头文件: | #include <QLidReading> |
qmake: | QT += sensors |
开始支持版本: | Qt 5.9 |
基类: | QSensorReading |
属性
- backLidClosed : const bool
- frontLidClosed : const bool
- 1 个属性继承自 QSensorReading
- 1 个属性继承自 QObject
公有函数
bool | backLidClosed() const |
bool | frontLidClosed() const |
void | setBackLidClosed(bool closed) |
void | setFrontLidClosed(bool closed) |
- 4 个公有函数继承自 QSensorReading
- 32 个公有函数继承自 QObject
信号
void | backLidChanged(bool closed) |
void | frontLidChanged(bool closed) |
- 2 个信号继承自 QObject
其他继承的成员
- 1 个公有槽函数继承自 QObject
- 1 个公有变量继承自 QObject
- 10 个静态公有成员继承自 QObject
- 9 个受保护的函数继承自 QObject
- 2 个受保护的变量继承自 QObject
详细描述
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.
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.
属性
backLidClosed : const 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.
访问函数:
bool | backLidClosed() const |
frontLidClosed : const bool
This property holds a value indicating whether the front lid is closed. A front lid would be a normal laptop lid.
访问函数:
bool | frontLidClosed() const |
成员函数
[signal]
void QLidReading::backLidChanged(bool closed)
[signal]
void QLidReading::frontLidChanged(bool closed)
void QLidReading::setBackLidClosed(bool closed)
Sets the backLidClosed value to closed.
参见 backLidClosed().
void QLidReading::setFrontLidClosed(bool closed)
Sets the frontLidClosed value to closed.
参见 frontLidClosed().