Annoying painting problem when the app starts
-
Hi,
I'm using QMainwindow as the main widget and all my layouts are set to auto expand.
When the app starts android paints it wrong (looks like landscape paint on portrait screen).
After i rotate the screen its painting it just fine....Pictures :
-The problematic one on start
https://android-qt.googlegroups.com/attach/4fe791229167a722/problem.png?view=1&part=5
-The good one after i rotated the screen twice (to get back to portrait)
https://android-qt.googlegroups.com/attach/4fe791229167a722/ok.png?view=1&part=4I tried manually to force a resizeEvent but nothing worked!
any idea?
Thanks,
Ronen -
Perhaps you could rotate your window in it's class's constructor, before it gets even created (and painted). (If you don't subclass QMainWindow for your app, this is a reason to do so.)
-
How can i manually force window rotation?
I tried to use resize as a work around and it didnt work.