Cube House QML Accelerometer exampleThe Cube House example demonstrates the use of the accelerometer to drive a camera to create a pseudo-3D effect. To write a QML application that will use the QML Accelerometer element from the QtMobility.sensors import you need to to the following steps: Import the QtMobility.sensors declarative plugin: Add the Accelerometer QML elements into your qml file. In additional two properties are added to save the calculated pitch and roll values: Reading out the Accelerometer data can be done by implementing the 'onReadingChanged' slot and accessing the 'reading' property from the Accelerometer element: By using a timer the view can be rotated using the pitch and roll properties from the Accelerometer element: Files: Images: |