I'm using a QTableView to show data from a table in the database. The QTableView is inside a QMdiSubWindow. I want to resize the table/subwindow to exactly fit the table content's width and height. Basically i don't want a horizontal scrollbar to appear (There are only 3 columns and the texts are small enough to fit inside the screen).
Is there any way to make this happen automatically?
If i use adjustSize() function, the width is a little more than what is required. Is it possible to fit it perfectly?
Bookmarks