The code I posted does not resize column, it only resizes rows.When we are resizing the column in your code, the height of the row is not setting to the content.
If you want to adjust the height of row after resizing the columns, then you will have to call tableView->resizeRowsToContents(); again
The code I posted will do all theseMy requirement is:
1) Only one column, should be visible which should set to the QTableView
2) row height should be to the size of content
3) If the text is big,it should wrap and should be displayed in the next line of the same row.
Bookmarks