Thread
:
[SOLVED] Qt4 Auto Rotation w/ dialogs
View Single Post
Dotblank
2010-06-19 , 22:08
Posts: 94 | Thanked: 253 times | Joined on Jan 2010 @ Virginia
#
1
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 implemented a widget that has auto-rotation. That works and performs fine but when I create a dialog window the rotation is almost random.
When the dialog pops up sometimes it rotates back into landscape and after a small period of time if you re-rotate the n900 it rotates the dialog back to portrait. I have tried getting around this but the only workaround would be me implementing the sensors api in qt mobility.
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.
Last edited by Dotblank; 2010-06-20 at
21:23
.
Quote & Reply
|
Dotblank
View Public Profile
Send a private message to Dotblank
Find all posts by Dotblank