title: QTableView column width
body: <p>I'm struggling to set column width manually in a <code>QTableView</code>.
  Why doesn't this piece of code work?</p>
  
  <pre><code>tabb = new QTableView;
  tabb-&gt;resizeColumnsToContents();
  
  for (int col=0; col&lt;20; col++) 
  {
     tabb-&gt;setColumnWidth(col,80);
  }
  </code></pre>
  
  <p>If I omit <code>tabb-&gt;resizeColumnsToContents();</code> it still doesn't work.</p>