Hi,

I would like to make it so that my window increases in length as more rows are added to my QTableView widget.

Currently when my program is run my QTableView is short along with my window, what I would like to happen is that when I add rows of data to the QTableView it would get longer, until the maximum size of the window is reached, then the vertical scroll-bar would appear in the QTableView widget, so more rows can be added but the window doesn't get any longer.

Currently I am setting my window size with:
Qt Code:
  1. Loader::setMinimumSize(600,400);
  2. Loader::setMaximumSize(600,800);
To copy to clipboard, switch view to plain text mode 

and at the moment, the vertical scroll-bar appears as soon as the number of rows exceeds the space shown in the QTableView widget, and I have to manually drag the window to make it vertically longer.

I dont really want to start the window in its maximum size, and I would like to see as many rows as possible before the scroll-bar appears in the QTableView widget.


I hope I described my problem effectively, thanks for any help.