I want to know when user has finished editing a QTableView item, so I checked all the available signals, but I only found ones that will emit before the edit.
So, what should I do now?
Running Qt 4.8.4
Since your QTableView will have attached a model, connect to its signals,
eg void QStandardItemModel::itemChanged ( QStandardItem * item ) [signal]
or, more generally:
void QAbstractItemModel::dataChanged ( const QModelIndex & topLeft, const QModelIndex & bottomRight )
You can, also, connect to the selection model signals.
Usually, when you finish editing an item, focus changes to next, so selectionmodel will fire
currentChanged but this hasnt to be general.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With