How to Handle Screen Orientation to Portrait in Meego
-
Hi Guys!
I am working on an meego app thet will only run in portrait mode of screen orientation.
But If I use lock screen to portrait while creating new app or either if I change orientation in main.cpp file like below
@viewer.setOrientation(QmlApplicationViewer::ScreenOrientationLockPortrait);@It works pretty fine on symbian phone nokia c700 but on meego it shows only landscape mode of screen. But my app only needs to be supported in portrait.
So How can I lock screen orientation to Portrait in Meego n950?
Thank You
-
Thank You Andzero for giving quick response.
But
@orientationLock: PageOrientation.LockPortrait@
is only part of Page element in qml but in my app I am using rectangles Items and a Loader to move from one screen to other So I can not use this API in qml.
Also my app is typically in QmL so cannot do much in cpp but would you tell me about the view element in your answer in cpp, since I am using viewer which does not haveany any setattribute api to be used.Thank You