Actually the title contains all information needed. Is there an easy function like tableview.resizeColumnsToContents() that allows the maximization of all column widths with
See resizeColumnsToContents.
There's also a stretchLastSection property that can be used (see QTableView).