View Single Post
Posts: 3,328 | Thanked: 4,476 times | Joined on May 2011 @ Poland
#1396
Originally Posted by arcean View Post
I've changed the following line in main.cpp file of your application:
Code:
viewer.setOrientation(QmlApplicationViewer::ScreenOrientationAuto);
to
Code:
viewer.setOrientation(QmlApplicationViewer::ScreenOrientationLockLandscape);
and it work's as expected.

For some reason ScreenOrientationAuto sets HILDON_PORTRAIT_SUPPORTED flag on app's window. With current portrait mode policy it means that the window won't be blacklisted.
I regret to say that it doesn't work as expected. For this app, yes. But not for thousands of MeeGo apps run via MeeCoLay. They don't have this line with ScreenOrientationLockLandscape. Btw. does the internal rotation work after changing this line (Qt Components one)

This is the only way to blacklist MeeGo without gaining root priveleges and without leaving crap when the app is removed.

What has changed that this stopped working with QmlApplicationViewer::ScreenOrientationAuto?
__________________
If you want to support my work, you can donate by PayPal or Flattr

Projects no longer actively developed: here

Last edited by marmistrz; 2013-02-13 at 17:05.