Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Column width in QTableWidget
webguy85 last edited by
I have a 3 column QTableWidget object. I specified the width of the 1st and 3rd columns, but I want the width of the 2nd column to just expand as far as the layout will allow. Is that possible, or do I have to apply a fixed numeric width to the 2nd column?
Eddy last edited by
What you want is possible for the last column using "stretchlastsection":http://doc.qt.nokia.com/4.7/qheaderview.html#stretchLastSection-prop
Afaik for another column you will have to calculate the width yourself as you suggested.