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
This is contentsMargin
To remove it:
t->setContentsMargins(0,0,0,0);