QAltimeterReading 类

The QAltimeterReading class holds readings from the altimeter sensor. 更多...

头: #include <QAltimeterReading>
qmake: QT += sensors
Since: Qt 5.1
继承: QSensorReading

特性

公共函数

QAltimeterReading (QObject * parent = DECLARE_READING(QAltimeterReading))
virtual ~QAltimeterReading ()
qreal altitude () const
void setAltitude (qreal altitude )

重实现公共函数

virtual void copyValuesFrom (QSensorReading * other ) override

静态公共成员

const QMetaObject staticMetaObject

额外继承成员

详细描述

The QAltimeterReading class holds readings from the altimeter sensor.

The altitude is reported in meters relative to mean sea level.

特性文档编制

altitude : const qreal

This property holds the altitude in meters relative to mean sea level.

访问函数:

qreal altitude () const

成员函数文档编制

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

Default constructs an instance of QAltimeterReading.

[虚拟] QAltimeterReading:: ~QAltimeterReading ()

Destroys the instance of QAltimeterReading. The destructor is virtual.

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

void QAltimeterReading:: setAltitude ( qreal altitude )

Sets the altitude to altitude .

另请参阅 altitude ().