Hello all,

I am running into an issue with a QTableWidget not expanding to the size of the QDockWidget it is being created inside of. I am not specifying a layout. I have tried implementing minimumSizeHint() and sizeHint() in the QTableWidget derived class. It is called once upon startup but never again when I insert columns in my table. I have tried calling it explicitly after a column insertion but it doesn't make a difference in the size. I tried force executing updateGeometry() as well, again to no avail.

This first picture shows what it looks like when my app loads. As you see the table in the "Output" is not expanded to the extent of the QDockWidget.
output1.jpg

This one shows what happens when I insert a column.
output2.jpg

How do I get this to work as I want it to?

Cheers!
-Caolan.