Hello,

I have a QDialog based ui.
The QDialog only contains a QTableWidget within a QVBoxLayout.

My table is compouned of an unknown number of rows, and I resize them with "resizeRowsToContents()" every time the content of the table has changed.
That's ok.

The problem is to resize the height of the QDialog to match the new size of the table.
In order to do that, I sum the height of the rows and I get the size really used by the table.

So, I just need to resize my QDialog...
It's new height will be equals to the table's necessary height more any pixels for the QDialog's style (that adds border on the top and the bottom of the content, for title, menus, etc...).

I can't find any function that would give me the avaible geometry of the QDialog, in order to compute :
Added height = QDialog's height - avaible geometry.height
So I compute something like :
Added height = QDialog's height - QTable's height

The matter is that the QTable->height doensn't give me the height of the Widget.
It returns me 30.
The sum of the rows is about 66.
The QTable size is about 180. (I know that with the QDesigner)
The QDialog size is about 200. (I know that with the QDesigner)

I used the size() and geometry() functions in order to get the QTable's height.
Every time I try to know the height value, I get 30

May you help me please ?