I tried to clone the functionality of the imageviewer example at
http://doc.trolltech.com/4.3/widgets-imageviewer.html by implementing the user interface with qt designer 4.4.0-beta1 to a Main Window.
In order to get the functionality right I had to comment one line in the .h file that was generated by qmake from the .ui file. Without the modification the layout setting and resizing of the scrollArea widget seemed strange.
I don't like modifying machine generated code and I would like to know is there a better way to circumvent the problem I faced.
The line commented in the .h file is
// SaulinQTDesignedUiWindow->setCentralWidget(centralwidget);
I added the following line to my imageviewer.cpp file
setCentralWidget(scrollArea);
For the convenience of the reader I inserted the original imageviewer example files as comments to files main.cpp, imageviewer.cpp and imageviewer.h. The MainWindow file produced by qt designer is imview.ui. Notice that I have commented one line in the ui_imview.h file, don't overwrite it by mistake with qmake.
Sauli