diff options
author | Laszlo Agocs <laszlo.agocs@theqtcompany.com> | 2015-11-21 13:19:21 +0100 |
---|---|---|
committer | Laszlo Agocs <laszlo.agocs@theqtcompany.com> | 2015-11-21 12:19:48 +0000 |
commit | f469615fa1083ede58ec8603447b5feadaa83bd8 (patch) | |
tree | 3ea23e53090d38b42a9a9bd56dac21a5ec4dec14 | |
parent | 3bd8002945e6c3e0119b8db1fce22e634e9c4ca5 (diff) |
Add orientation to the README's example code
Change-Id: Iaf744763f4e5f10a9e91709af838277ce019a91a
Reviewed-by: Laszlo Agocs <laszlo.agocs@theqtcompany.com>
-rw-r--r-- | README.md | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -56,6 +56,9 @@ Sensors example: QObject::connect(&sensors, &QSenseHatSensors::compassChanged, [](const QVector3D &v) { qDebug() << "Compass:" << v; }); + QObject::connect(&sensors, &QSenseHatSensors::orientationChanged, [](const QVector3D &v) { + qDebug() << "Orientation:" << v; + }); QTimer::singleShot(10000, &app, &QCoreApplication::quit); return app.exec(); } |