I have a QTable view that is filled and editted with a custom Model and custom delegate (QComboBox with strings).

I was wondering how I could resize a column/row that is edited based on the contents of the editted filed.

I can resize the QComboBox by setting it sizePolicy but that has no effect on the column.

I want the QComboBox to fit by its contents and the column /row also.

Second question is probably simple to answer but I could not find the solution. How can I autoresize a QTableView within a QFrame to auto expand to the frame. I would like to grow the columns to use all space available. Not only stretch the last column.