How to abort editing a QTableWidgetItem
I use a
QStyledItemDelegatethat handles editing data. How can I programatically abort editing a
QTableWidgetItem, just like if ESC is pressed during editing, so that nothing happens and the editor is simply closed?
Seemed to be a trivial task, but I just can't get it to work :-(
Thanks for all help!
@raven-worx I already tried this, but
setModelDatais still called …
Okay, this was a timing problem of some signal stuff I do in addition … the
setModelDatahappened later, not when I thought
closeEditorhad no effect.
Thanks anyway :-)