How to abort editing a QTableWidgetItem
-
Hi :-)
I use a
QTableWidgetwith aQStyledItemDelegatethat 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!
-
Hi :-)
I use a
QTableWidgetwith aQStyledItemDelegatethat 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 -
@l3u_
emit the closeEditor() signal@raven-worx I already tried this, but
setModelDatais still called …