The following PyQt program produces a window containing a QTableView with a margin space to its bottom and right (but not top and left) – even though the main-window is told to adjust itself to its contents size: I was expecting to see: If I increase the size of the window from the original position, I see: What is the