QOrientationSensor 类
QOrientationSensor 类是对 QSensor 的一种便利封装。更多...
| 头文件 | #include <QOrientationSensor> | 
| CMake | find_package(Qt6 REQUIRED COMPONENTS Sensors) target_link_libraries(mytarget PRIVATE Qt6::Sensors) | 
| qmake | QT += sensors | 
| 继承自 | QSensor | 
公共函数
| QOrientationSensor(QObject *parent = nullptr) | |
| 虚拟 | ~QOrientationSensor() | 
| QOrientationReading * | reading() const | 
详细描述
此类的行为差异仅在于它设置了正确的类型。
此类还具有一个 reading() 函数,它返回一个 QOrientationReading 而不是 QSensorReading。
有关传感器工作详情,请参阅 QOrientationReading。
另请参阅QOrientationReading。
成员函数文档
[显式] QOrientationSensor::QOrientationSensor(QObject *parent = nullptr)
将传感器作为 parent 的子项创建。
[虚函数.NoSuchException] QOrientationSensor::~QOrientationSensor()
销毁传感器。如果传感器尚未停止,则停止它。
QOrientationReading *QOrientationSensor::reading() const
返回此传感器的读取类。
另请参阅QSensor::reading()。
© 2024 Qt 公司有限公司。此处包含的文档贡献为各自所有者的版权。此处提供的文档根据自由软件基金会的版本 1.3 许可的条款获得许可。Qt 及相关商标是芬兰的 Qt 公司及其它国家的商标。所有其他商标均为各自所有者的财产。