I'm a newbie in Qt programming. I downloaded QtCreater 1.2.1 using Qt 4.5.2. I'm going through one of the tutorials on creating a TextFinder. It is all working OK except I have a question regarding resizing windows.

When I run the application, the window starts up. However, when I increase/decrease the size of the main windows, I would like to have the textarea and search text line expand/decrease appropriately.

In the UI file, I have the size policy for LineEdit set to [Expanding, Fixed, 0,0]. For the textEdit it is set to [Expanding, Expanding, 0, 0]. But for some reason, these sub areas are not being resized as the parent window is resized.

Can someone tell me how I can fix this? Are there some extra settings to be set in QtCreator?

Thanks for your time.