My problem is the following:
suppose that I set two windows; I'd like to switch from one to each other using a Pushbutton.
First, I set QStackedWidget with the default two pages: in every page I set my switch button.
My final application must be 800x480 because I use it on a 7" touchscreen LCD.
First windows opened when my application starts, has no problem; when I pressed the button, the second window appeared horizontally truncated after 640 pixel.
I close my application and start it again using my second window as first visible window: this appears correct and when I press the button to switch to the other one, this last appears horizontally truncated exactly after 640 pixel (same as previously observed on the other window).
It seems starting window is OK, meanwhile the second one selected pressing the button is wrong.
I tried to set size policy to expand: nothing to do!
I tried to set size policy to maximum: nothing to do!!
At the end my first appearance is correctly 800x480, meanwhile when I switch to the following stacked window the new appearance is 640x480.
Last annotation: coming back to the first starting window dimension is still 800x480.
So I'm losting in the deeper Qt ocean!!! SaveMySoul!!
What can I should do?
Paolo
Qt 4.6.2 on Ubuntu Karmic Koala