How to lock the Orientation in Portrait mode?
I am developing an application where i have to lock the screen in portrait mode. there is a problem when the application is opened in landscape mode even though we have locked the application for portrait as bellow,
the application works fine when the app is opened in portrait mode, after opening if we turned to landscape its view is as portrait as expected.
But when we open the application in landscape mode the ui design is completely collapsed.
The current status is that everything works fine,when the application is opened in portrait mode. When ever i switch to landscape mode and open the application,there the problem occurs.(ie.,the application displays the orientation in the Landscape mode but i need to lock it to portrait mode) What i need is even when i change the orientation, the screen should be in Portrait mode itself.Thanks for any replies..
Which OS are you running on?
I am using Qt 4.7.4 for Symbian Belle.
alexleutgoeb last edited by
Have you also tried setting this attribute? http://qt-project.org/wiki/How_to_Port_From_Desktop_to_Mobile#588b961f3bf87b54277c2257aaa2e6dc
Thank you for your reply i had already tried that too but no solution.
(The problem might be)I had designed all the .qml pages using a rectangle and not in a Pagestack.I thought that might be the problem for this issue.
But looking for this orientation solution in various forums, i came to know that using Pagestack or Rectangle does not cause orientation problem.
Is there any other way to fix my problem????
Anyone help me with this......