The QTableWidget object have a property called horizontalHeaderStretchLastSection, which stretches the last section in the table when the window is resized. Is there an easy way to stretch the first section instead?
The QTableWidget object have a property called horizontalHeaderStretchLastSection, which stretches the last section in the table when the window is resized. Is there an easy way to stretch the first section instead?
Yes. Access the horizontal header of the table and then call QHeaderView::setResizeMode() passing Stretch for the first section. You will also want to disable stretch on the last section.
Bookmarks