title: readjust QTableView after changes to the model
body: <p>I use PySide2==5.13.0</p>
  
  <p>I have a custom QTableView. A QAction invokes the remove method below. All works fine but the table view itself does not adjust its dimensions (same with the add method). </p>
  
  <pre><code>def remove(self, row):
      print(f'remove {row}')
      self.model.removeRow(row)
  
      # I tried a few of the methods
      self.table_view.resizeColumnsToContents()
      self.table_view.restoreGeometry()
      self.table_view.adjustSize()  # resize...
  </code></pre>
  
  <p>Screenhot shows that the model has been processed correctly (row is gone). But the table view itself needs to remove the row, too.</p>
  
  <p><a href="https://i.stack.imgur.com/FpEhg.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/FpEhg.png" alt="empty row at the end needs to go"></a></p>
  
  <p>I believe it is sth. small and I am studying the documentation for hours but could not find the solution to this problem (yet). Ideas?</p>