I am using a QTableView to display results from an SQlite database. The QTableView is placed into the QTabWidget using the graphical editor in QtCreator. Layout is done using a grid.
When I resize the main window, the QTabWidget will adjust its size but the QTableView inside will not. Both widgets use the "Expanding" size policy.

However, when I place my QTableView directly on the main window using grid layout, resizing of the main window works fine, the tableview adjusts its size automagically.
I seem to be missing some detail here. Can anyone please help how to get the qtableview resize automatically within the QTabWidget?