QHolsterReading Class

The QHolsterReading class holds readings from the holster sensor. 更多...

頭: #include <QHolsterReading>
qmake: QT += sensors
Since: Qt 5.1
繼承: QSensorReading

特性

公共函數

bool holstered () const
void setHolstered (bool holstered )

額外繼承成員

詳細描述

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

另請參閱 QHolsterReading Units .

成員函數文檔編製

void QHolsterReading:: setHolstered ( bool holstered )

Sets the holstered value to holstered .

另請參閱 holstered ().