The QDistanceSensor class is a convenience wrapper around QSensor . 更多...
头: | #include <QDistanceSensor> |
qmake: | QT += sensors |
Since: | Qt 5.4 |
继承: | QSensor |
QDistanceSensor (QObject * parent = Q_NULLPTR) | |
virtual | ~QDistanceSensor () |
QDistanceReading * | reading () const |
const QMetaObject | staticMetaObject |
const char *const | type |
The QDistanceSensor class is a convenience wrapper around QSensor .
The only behavioral difference is that this class sets the type properly.
此类还特征 reading () 函数返回 QDistanceReading 而不是 QSensorReading .
有关传感器如何工作的细节,见 QDistanceReading .
另请参阅 QDistanceReading .
构造传感器作为子级对于 parent .
[虚拟]
QDistanceSensor::
~QDistanceSensor
()
销毁传感器。停止传感器若尚未停止。
返回用于此传感器的读取类。
另请参阅 QSensor::reading ().