I am trying to layout a DockWidget in the following manner

-QFrame (Max Height of 60px)
-QWidget (Max Height of 100px)
-QToolBox (Variable height depending on the current page that is being viewed)

however, when i do it, the QToolBox takes up all the space at the bottom, even though the individual pages only have one or two line edits in them. So what i would like is to have the QToolBox only show the necessary space.

How should my size policies be set