I seem to be having an issue with auto-rotation not affecting dialogs or other widgets immediately. Following the concept in this example for qt4 http://doc.trolltech.com/qt-maemo-4....-rotation.html [...] I have to set the dialog widget attribute to WA_Maemo5AutoOrientation otherwise it is always landscape mode. I think the issue is that when a widget gets the auto rotation flag set it re-initializes the accelerometer taking time and defaults to landscape when it doesn't have any data from the sensor yet.
QMaemo5Rotator *rotator = new QMaemo5Rotator(QMaemo5Rotator::AutomaticBehavior, this);