I have implemented a compass interface on a Nokia 808 and I get relatively accurate results when the phone is held on a horizontal plane with the display facing up.
I would like to be able to obtain similarly accurate compass readings when the phone is tilted into landscape mode. eg Can I obtain the direction that the camera is facing when it is recording?

This requires rotational transforms on the magnetometer readings to take into account the change in tilt orientation of the phone. Is this taken into account in the QCompass class?

If not then do I need to access the raw magnetometer data to be able to do this? Any help would be appreciated