I'm having an instance of QTablewidget with some columns a few rows and some data in it.
Now I am searching for a way to make the columns fill the full width of the tablewidget. Also, I want all the columns to have the same width. 
Is there a way to achieve this?
This code worked fine for me:
self.tablewidget_preview.horizontalHeader().setStretchLastSection(True)     self.tablewidget_preview.horizontalHeader().setSectionResizeMode(QHeaderView.Stretch)
Make columns fill the full width of QTableWidget