View Full Version : Stretch Last Section
skizzik
10th January 2011, 08:26
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?
wysota
10th January 2011, 14:45
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.
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.