QHolsterReading Class

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

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

特性

公共函數

QHolsterReading (QObject * parent = DECLARE_READING(QHolsterReading))
virtual ~QHolsterReading ()
bool holstered () const
void setHolstered (bool holstered )

重實現公共函數

virtual void copyValuesFrom (QSensorReading * other ) override

靜態公共成員

const QMetaObject staticMetaObject

額外繼承成員

詳細描述

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 .

成員函數文檔編製

QHolsterReading:: QHolsterReading ( QObject * parent = DECLARE_READING(QHolsterReading))

Default constructs an instance of QHolsterReading.

[虛擬] QHolsterReading:: ~QHolsterReading ()

Destroys the instance of QHolsterReading. The destructor is virtual.

[override virtual] void QHolsterReading:: copyValuesFrom ( QSensorReading * other )

void QHolsterReading:: setHolstered ( bool holstered )

Sets the holstered value to holstered .

另請參閱 holstered ().