QTreeView item editor: how to make it only commit the edit on Enter press?
-
As you may or may not know, by default the editor commits the data on Enter press or focus change. I need to discard edits on focus change, not commit. How do I do that? I already have my own delegate class, can I do it with its help?
-
I guess one way to install event filter for the editor, but it's clumsy.
-
Actually, scratch that, I can't think of a way to solve my problem by using event filter either.