title: QTableWidget edit only one column and leave the rest non-editable
body: <p>In QT 4.7, I am trying to make one QTableWidgetItem in a QTableWidget Editable and the rest all columns should be read only for me. I am having problems here.</p>
  
  <p>I have checked a number of samples through google and stackoverflow but failed to achieve this. Some of the options I tried are,</p>
  
  <p>I create rows by calling insertRow(rownumber) for adding rows.</p>
  
  <ol>
  <li><p>Trial 1: I do the following while inserting a row dynamically</p>
  
  <ul>
  <li>Enable Edit triggers in the UI Dialog</li>
  <li><p>Add columns using the following code for disabling edit</p>
  
  <p><code>QTableWidgetItem qit("");
  qit.setflags(qit.flags() &amp; ~Qt::ItemIsEditable)
  qtable.setitem(row,column, &amp;qit);</code></p></li>
  <li><p>And for others columns I don't set the flags</p></li>
  </ul>
  
  <p>This above approach did not work. I am able edit all columns (even the one I negated the editable option)</p></li>
  <li><p>Trial 2:
  Do all the above with just <code>qtable.setEditTriggers(Qt::NoEditTriggers)</code> and then set the columns editable wherever required.</p>
  
  <p>But this option renders all columns non-editable.</p></li>
  </ol>
  
  <p>But I don't see anyone complaining like this in any forums. So I must be making some stupid mistake. </p>
  
  <p>Have someone come across such an issue, if yes please help by answering. </p>