A
A
al314152014-08-25 17:46:14
Qt
al31415, 2014-08-25 17:46:14

How to track the completion of editing in a table cell?

Good afternoon, there is a table, the text in which the user can edit after a double click.
It is necessary to track when the user has completed editing, that is, the cell is no longer in the editing state. I know about itemChanged, but as I understand it, the signal is sent whenever the user changes the text in the cell, and I need to receive the text after the final editing.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
X
xseven, 2014-08-25
@xseven

When editing, it is called from the delegate createEditor (a field for editing is created), setEditorData (we assign a value to the field for editing), setModelData (editing is over, we save the value to the model). These functions should be redefined
You can read here

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question