Hi all,

First time poster here. Decided to give Qt a shot, after getting fed up with wxWidgets' absolutely horrid GUI designer and clunky macros.

I've installed Qt 4.6.2 and Qt Creator on my Windows box, and I've been experimenting with the GUI editor. It's fantastic! But I've run into a situation.
I've got my QMainWindow and I need a treeview and an MDI client widget. So first thing I tried to do was add a QHBoxLayout, and successfully added a QTreeView and QMdiArea into it (this is all in the WYSIWYG editor.)

That's fine, but I'd like the QHBoxLayout to completely fill up the client area of the window, and resize automatically as the parent window gets resized. I looked through the properties and tried a few, but couldn't find anything relevant. Is there a way to do this automatically, or do I have to intercept the parent window's resize event, and manually resize my layout box?

I then tried adding a QDockWidget and putting the QTreeView into it. But again the QTreeView doesn't fill its parent. Can I do this automatically, or is this the same story as before?