Using accelerometer by Qt application