Portrait QML apps on N900?
Is there a way to view QML apps in portrait mode on Nokia N900 with current version of QMLViewer? It doesn’t rotate automatically and the “Set orientation: Portrait” option doesn’t do anything.
You have to tell your main.qml to resize the actual window size matching the orientation.
Maybe the runtime [doc.qt.nokia.com] object would help you for that.
If you create a C++ or Python wrapper for your QML app, you can use the Maemo 5-specific attributes “Qt::WA_Maemo5PortraitOrientation” and “Qt::WA_Maemo5AutoOrientation” on your QWidget (e.g. QDeclarativeView or QMainWindow), as described in this example:
This way, you don’t have to press Ctrl+Shift+R every time you start your application and you can force portrait-only mode if you want (Ctrl+Shift+R only enables auto-rotation). Obviously, this only applies if you are writing a small C++/Python wrapper and load your QML file in a QDeclarativeView, and not if you are only using the QML Viewer.
Does it? It doesn’t on my n900 and I assume it didn’t for Tommi either or he would not have started this thread.
Report a bugs on bugs.maemo.org then on the package and post instructions on how to reliably reproduce the error :) (I guess the Maemo build of qmlviewer has a special component on bugs.maemo.org, but it could be the normal Qt bugtracker as well)