[Solved]Orientation in Harmattan
-
Hey all,
has anybody figured out how to get decent screen orientation behaviour when using QML on Harmattan please? I am trying to write an app that responds to orientation changes and the usual QmlApplicationViewer code generated by creator is not behaving properly. The application is only ever displayed in landscape.
I have found these bugs that are relevant:
https://bugs.meego.com/show_bug.cgi?id=17200
https://bugreports.qt.nokia.com/browse/QTBUG-19733However, the N950 ships with a number of QML apps which do seem to respond to orientation changes so it must be possible. Just wondered if anybody here has stumbled across the trick?
Thanks in advance.
-
Hi,
Alicemirror has encountered this bug too. He has made a solution for it. It's part of "qt-complex.":http://developer.qt.nokia.com/wiki/QtComplexGeometryTool
-
If you use the Window element, you can use the inPortrait property. See the "Orientation":https://qt.gitorious.org/qt-components/qt-components/blobs/master/examples/meego/QmlComponentGallery/qml/OrientationPage.qml page of the QML Component Gallery.
-
Thanks guys! I'll try these solutions out tomorrow night.
-
The Window element from Qt Components is working a treat. Now I just need to abstract this for various mobile device profiles and desktop.