I have just managed to make a QTableView
work with my model. It has fixed 3 columns. When I open a window, it looks ok, but when I resize the window, the QTableView
itself gets resized, but columns' width remains the same.
I want columns to resize to fit the edges of QTableView
every time the window gets resized.
Is there any built-in way to make it work?
header.setSectionResizeMode(QtWidgets.QHeaderView.ResizeMode.ResizeToContents)
– Futility