I am showing a popup menu to select some values in a QTableWidget. The lowest item is the "Edit List" entry, when I select it, a new window should automatically appear, and the QComboBox should disappear, and the cell will return to the Qt :: DisplayRole state.
Now Qt has all these nice API calls, such as, QTableWidget.edit()and QTableWidget.editItem()what I'm really looking for is QTableWidget.endEditing(), preferably without specifying a cell index, although I could get this using this call:
table.currentIndex()
... but I don’t know if I can guarantee that the current cell is an editable cell.
Is there an API for closing such editors?
