Hello to all. There is a QDialog ui form made in the designer. There is a tableWidget in the window, how to make the window change depending on the width of the columns in tableWidget. I have a tableWidget of 6 columns on 10 lines with the possibility of their expansion. If the word does not fit, the column automatically expands. But since the minimum size is fixed, the scroll appears to the right, and I would just like to expand the window according to where the last column ends.
GetTextExtentPointfont should be embedded in dc . By calculating the size - you can manually expand the dialog. Unfortunately for Windows, I did not see the auto-expansion functions. Maybe in the qt-package something is. - nick_n_a