In the code below I am creating a QTableView inside a QMainWindow but the window shows up as smaller than the table:
QTableView
QMainWindow
I would like it to