I'm using QtSDK 1.1 beta on 64bit Linux, and I'm trying to deploy to s60v5 (5800XM).
I created a QML app using the QtCreator app wizard. It created some C++ code that it's supposed to control orientation on mobile devices.
I used runtime.orientation in my QML files to control screen orientation.
My results are:
- Running the app directly doesn't work: seems to not have the runtime object available, so all the layout that depends on it is in wrong places
- Running qmlviewer with the QML file seems to work: runtime.orientation is available and I can test changes in orientation
- Mobile device
- Running the app directly works like running the app in the desktop: the layout that depends on runtime.orientation is in wrong places. A change in orientation in the device triggers a change of width and height only.
- Running qmlviewer on the mobile device makes the app work "almost" like running qmlviewer on the desktop: runtime.orientation is available (and layout that depends on it is in the right places), BUT a change in orientation only changes screen size, but not changes runtime.orientation (AFAIK), so my transitions don't play, etc.
So what would be the *right* way to make an app orientation aware, so that it works on mobile devices (without resorting to qmlviewer) and can be tested easily on the desktop? (remember I'm on Linux, so no Simulator)
Should I use QtMobility as shown in this blog post, or should I rely only on (width>height) comparisons?