I am new to Qt and I have just managed to make a QTableView work with my model. It has fixed 3 columns. When I open a window, it look ok but when i resize the window, the QT
In PyQt5 you can achieve this in your table_widget by doing:
header = table_widget.horizontalHeader() header.setSectionResizeMode(QtWidgets.QHeaderView.ResizeToContents)