Here's the basic outline of a dialog I have designed:
Qt Code:
  1. +--------------------------------------------------+
  2. |Gridlayout->contains "show more" button |
  3. |--------------------------------------------------|
  4. |Gridlayout-> contains more stuff |
  5. +--------------------------------------------------+
To copy to clipboard, switch view to plain text mode 

Now, what I want to have happen is when the "more" button is pressed, the dialog expands, and the rest of the options are displayed. When it is pressed again, those extra options should just diappear and the dialog should be resized appropriately.

What actually happens is the top gridlayout expands to the size of the whole dialog box. When the more button is pressed, the dialog box is not resized, but the second layout is shown, squishing both within the dialog box.

I've tried setting the layouts, sizes, size preferences, etc to everything I can think of, but it never behaves the way I want it to.

There's an example in the Tutorials/Examples in the docs on trolltech's site http://doc.trolltech.com/4.1/dialogs-extension.html, and I can follow that and get things to work using their set up, but I can't figure out how to do the same thing using just the designer. Does anyone have any suggestions?