title: changing the default row size in a QTableView
body: <p>How do you change the default row size in a QTableView so it is smaller? I can call <code>resizeRowsToContents()</code>, but then subsequent inserts still add new rows at the end which are the default size.</p>
  
  <p>I am guessing it might have something to do with style sheets but I'm not familiar enough with what things impact the visual changes.</p>
  
  <p>I am using PySide in Python, but I think this is a general Qt question.</p>
  
  <hr>
  
  <p>example view:</p>
  
  <p>default table appearance</p>
  
  <p><img src="https://i.stack.imgur.com/XMKR4.png" alt="enter image description here"></p>
  
  <p>what the table looks like after <code>resizeRowsToContents()</code>:</p>
  
  <p><img src="https://i.stack.imgur.com/3x2yM.png" alt="enter image description here"></p>
  
  <p>now if I add a new blank row at the end:</p>
  
  <p><img src="https://i.stack.imgur.com/qTZEp.png" alt="enter image description here"></p>
  
  <p>Darn, it uses the default row height, with all that extra space.</p>