How to abort editing a QTableWidgetItem
Solved
General and Desktop
-
Hi :-)
I use a
QTableWidget
with aQStyledItemDelegate
that handles editing data. How can I programatically abort editing aQTableWidgetItem
, 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!
-
@l3u_
emit the closeEditor() signal -
@raven-worx I already tried this, but
setModelData
is still called … -
Okay, this was a timing problem of some signal stuff I do in addition … the
setModelData
happened later, not when I thoughtcloseEditor
had no effect.Thanks anyway :-)
Post 1 of 4