Limit QTableWidget resizing
-
I have a QTableWidget inside a QVBoxLayout. Is there a way to tell the Table to always have the size of his parent (avoiding any Table layout-breaking resizing but allowing only row and colums resizing inside the visible space)?
Code: http://pastebin.com/Ti9bqbyG
In the image, what should NOT happen.
!http://i.stack.imgur.com/q1OdB.png(bad layout)!
-
Maybe "QHeaderView::setResizeMode":http://qt-project.org/doc/qt-4.8/qheaderview.html#setResizeMode could help
-
[quote author="SGaist" date="1362060330"]Maybe "QHeaderView::setResizeMode":http://qt-project.org/doc/qt-4.8/qheaderview.html#setResizeMode could help[/quote]
It helped. Can I use the Stretch parameter with the possibility of the user resizing?