New QtQuick project Android: orientation change anomaly
hope you are all doing alright and have fun with Qt as I am.
I've run into a bit of a problem lately however. I have just downloaded the latest version of Qt from the git repository, compiled it for Android and successfully integrated it into the latest version of QtCreator (also downloaded and compiled from Git). It looks like everything went alright as I can easily create new projects and deploy them on my Android phone.
So I create a new QtQuick 2 project and starting to play with it a little bit. I change the background color of the root object to red and add a couple of text boxes and I get this result:
As you can see in the link above all works pretty neat. As soon as I change orientation to landscape something goes terribly wrong though with this result:
it looks like the whole of my root object has not been resized according to the screen and also it has been moved up to coords (0, -something). The weird thing is that if I try and debug it and catch the resizeEvent of my QQuickView that visualizes the qml, it looks like the geometry of my root object has been correctly updated but not visualized...
Also, when I try and change phone orientation back to portrait, it doesn't all go back to the original state, but the root object seems to keep its portrait geometry and is shifted down to coords (0, something).
"back to portrait orientation--":http://img248.imageshack.us/img248/1839/screenshot2013043010542.png--
Again however, while debugging, it seems that the geometry is being updated correctly just not visualized so I have no idea what is going on.
Does anybody have any idea what's happening and how I might solve such problems. I tried setting the geometry of the rootObject by hand when the geometry of the QQuickView changes, but that doesn't fix it and I have run out of ideas.
Thank you for your time,