QHolsterReading Class
The QHolsterReading class holds readings from the holster sensor. 更多...
头文件: | #include <QHolsterReading> |
qmake: | QT += sensors |
开始支持版本: | Qt 5.1 |
基类: | QSensorReading |
属性
- holstered : const bool
- 1 个属性继承自 QSensorReading
- 1 个属性继承自 QObject
公有函数
bool | holstered() const |
void | setHolstered(bool holstered) |
- 4 个公有函数继承自 QSensorReading
- 32 个公有函数继承自 QObject
其他继承的成员
- 1 个公有槽函数继承自 QObject
- 2 个信号继承自 QObject
- 1 个公有变量继承自 QObject
- 10 个静态公有成员继承自 QObject
- 9 个受保护的函数继承自 QObject
- 2 个受保护的变量继承自 QObject
详细描述
The QHolsterReading class holds readings from the holster sensor.
QHolsterReading Units
The holster sensor can detect if a device is holstered or not. A holster is a pocket, similar to a gun holster, specifically made for the device. If the device is inside of this pocket, it is holstered. The holster supports the device in detecting whether the device is holstered or not.
属性
holstered : const bool
This property holds a value indicating whether the device is holstered.
访问函数:
bool | holstered() const |
成员函数
void QHolsterReading::setHolstered(bool holstered)
Sets the holstered value to holstered.
参见 holstered().