Hi,
Is there anyway to make QTableWidget autoResize to contents all columns and rows automatically to fit the maximum contents of the cells?
Thanks,
Hi,
Is there anyway to make QTableWidget autoResize to contents all columns and rows automatically to fit the maximum contents of the cells?
Thanks,
Òscar Llarch i Galán
J-P Nurmi
Hi,
This is my code:
Qt Code:
To copy to clipboard, switch view to plain text mode
I have one widget that have a tableWidget, a button and a widget, all managed by a QVBoxLayout and inserted into a dockWidget.
It seems that is not resising until it has space enougth.
Thanks,
Òscar Llarch i Galán
Scrollbars should appear in case there is not enough space. I guess you should subclass QTableWidget and reimplement sizeHint() to return suitable size if you want the layout to give it enough space to fit all content by default.
J-P Nurmi
^NyAw^ (20th February 2008)
Bookmarks