The following PyQt program produces the following window containing a QTableView with a margin space to its bottom and right (but not top and left):
QTableView