On Wed Dec 3 17:10:00 GMT 2008, Anonymous wrote:

> Thanks for the response, but i saw that in the documentation before asking,
> and it's not what i'm looking for. The columns for my purpose do not need
> to be fully stretched out, i just need the last column in the view to
> auto-stretch if there is space for it to take up.

Then there is a solution. It's quite well hidden:

  tableWidget.horizontalHeader().setStretchLastSection(True)
      
It's the header that handles the width of each column, which is obvious
if you think about tables in a certain way, but it seems to catch a lot
of people out.

David
_______________________________________________
PyQt mailing list    [email protected]
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Reply via email to