I have written a program that uses widgets as container (for other widgets). Because the contents of the container varies along the program life, the container widget has a
The space you referring to is a content margin. The docu here describes how the widgets are drawn. To get rid of that extra space you have to call:
widget->setContentsMargins(0, 0, 0, 0);
I believe the end result should look like this:

The method I recall to control spacing is to add dedicated QSpacerItem items between the widgets.
But I'm first trying to figure out what w is doing. Why not call g1a_l->addLayout(t); directly?
This is contentsMargin
To remove it:
t->setContentsMargins(0,0,0,0);