I would reimplement the delegate for the table and its setModelData() method. You can do all the checks you want there whenever the editing is finished.