Is there any way to determine if a QTableView
has an open editor in the current cell? I need to handle the following situation:
- A user double-clicks a cell and edits the data, but leaves the cell in the "edit" state.
- On another part of the UI, an action is taken that changes the selected row of the underlying model.
- Back on my view, I want to determine if the newly selected row is the same as the open row. If not, I need to take an action. (Prompt the user? Commit automatically? Revert?)
I see how to get the current item, and can get the delegate on that item, but I don't see any isEditMode()
property I was hoping to find.
Can someone point me in the right direction?