title: Qt QTableView resize to fit content
body: <p><a href="https://i.stack.imgur.com/Zq38s.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Zq38s.png" alt="MainWindow" /></a></p>
  <p>Hi, I have created MainWindow as shown above. I want to expand the first widget (plots) as much as possible so that the other two widgets fit content (or actually, I want to remove white empty space below tables).
  I don't know how to do that.</p>
  <p>Currently, both table vertical header size policy is set to FitToContent.</p>
  <p>Also, it needs to be dynamic so if I add a new row to the table, a new row should be visible (table will be larger).</p>
  <p>I hope I'm clear enough, and also hope there is no need for runnable code.</p>