title: How can I tell a QTableWidget to end editing a cell?
body: <p>I'm showing a popup menu to select some values in a QTableWidget. The lowest item is a "Modify list" entry, when I select it a new window should automatically appear and the QComboBox should vanish and the cell return to a Qt::DisplayRole state.</p>
  
  <p>Now Qt has all those nice API-calls like <code>QTableWidget.edit()</code> and <code>QTableWidget.editItem()</code>, what I'm really looking for is a <code>QTableWidget.endEditing()</code>, preferably without specifying the index of the cell, though I could get that using this call:</p>
  
  <pre><code>table.currentIndex()
  </code></pre>
  
  <p>… but I don't know if I can guarantee that the current cell is the cell being edited at all times.</p>
  
  <p>Is there an API to close those kind of editors?</p>
  
  <p><img src="https://i.stack.imgur.com/esRER.png" alt="Popup menu"></p>