Hello!

I am trying to prevent the user to enter to enter incorrect values in a QTableView. What I would like to do is check the contents of the cell at the end of the edition and prevent the user to leave to editor if the value is wrong.

I have been playing with a QItemDelegate and with the signal closeEditor. What would be the proper way to do it?

The ideal that I would like to achieve is, in case of an error, to prevent the user to leave the editor of a cell and even to prevent him from saving the data.

Thank you!