Qt Bubble Level is a simple Qt Quick application that uses accelerometer sensor information to calculate the inclination of the device and presents this as a traditional bubble level. The application provides a calibration feature to handle any possible errors in accelerometer readings. The UI is made using Qt Quick and the engine gets the accelerometer data via the QtMobility QAccelerometer sensor.
This example is hosted in a Nokia Developer Project, where you can find additional documentation, discover recent revisions, and contribute to the project.
The application is compatible with Maemo 5, Symbian^1, and Symbian^3 devices with Qt 4.7.1 (or higher) and QtMobility 1.1.0 (or higher).
Important classes: QDeclarativeView, QAccelerometer, QAccelerometerFilter, QSettings.