I have the following table (presented with QTableView, and uses a QAbstractTableModel derived class as a table model):

As you can see, some columns take too much space, such as the “Bitrate” or “Length” cloumns. How can I set a sizehint for a specific column, or somehow limit it’s maximum size?
I’ve tried using horizontalHeader‘s setMinimumSectionSize, but it seems to have no effect on the table.
You can try to use
setColumnWidthofQTableView.http://doc.qt.io/qt-4.8/qtableview.html#setColumnWidth