Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
[Solved]Orientation in Harmattan
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:
However, 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.
Eddy last edited by
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
baysmith last edited by
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.