Ported maze example to Qt 5

Accelerometer not working yet.