title: QTableWidget setItem() segmentation fault using Qt
body: <p>I'm using the following code to add a row to a QTableWidget.</p>
  
  <pre><code>QTableWidgetItem *item = new QTableWidgetItem(fileName);
  item-&gt;setCheckState(Qt::Checked);
  
  QComboBox *cmb = new QComboBox(this-&gt;list);
  cmb-&gt;addItem("one");
  cmb-&gt;addItem("two");
  
  this-&gt;list-&gt;setRowCount(this-&gt;list-&gt;rowCount()+1);
  this-&gt;list-&gt;setItem(this-&gt;list-&gt;rowCount()-1,0,item);
  this-&gt;list-&gt;setCellWidget(this-&gt;list-&gt;rowCount()-1,1,cmb);
  </code></pre>
  
  <p>There are 2 columns in the table. 'item' is placed in the first one, 'cmb' in the second one. Using this code I can succesfully add 1 row to the table, but when I try to add a second row, I get a segmentation fault.
  It crashes on the this->list->setItem() call.</p>
  
  <p>Any idea of why it crashes?</p>
  
  <p>Thanks!</p>