O'Reilly logo

Qt 5 Projects by Marco Piccolino

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Introducing Qt Sensors

Qt Sensors (http://doc.qt.io/qt-5.9/qtsensors-index.html) is a module that makes it easy for application developers to access sensor information in a cross-platform way. It provides classes for both C++ and QML, and supports out-of-the-box different kinds of sensors on a few platforms. Its architecture is based on the separation between front-end and back-end classes. While front-end classes are dedicated to application developers, back-end classes allow hardware and library developers to create wrappers for new sensors or new platforms.

The sensor data is exposed conveniently via the QSensorReading (http://doc.qt.io/qt-5.9/qsensorreading.html) class' specific subclasses, such as QAccelerometerReading (http://doc.qt.io/qt-5.9/qaccelerometerreading.html ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required