im just getting started with qt and ive got an application containing lots of groupboxes in a window, which need to be as large as posible, but only as tall as they need to be to fit their contents, which will vary in size. obviously i could do this in code quite easily but it would be far neater to put that behaviour in via the designer, i just cant seem to see an obvious way of doing it.

im using qt designer version 4.8.2