Is there a way to check if a row was edited after opening the Model up till the point my function is called?

I am putting my QSQLTableModel into a QTextEdit where it is put into a different format and users can edit things there, but they dont effect the Model, and I save the QTextEdit. Next time it is opened I need it to look though the model/qtableview and see if any changes were made to the row, if not it is skipped and if info for that row in the TextEdit is left how it was last saved, if any of it has been changed then the section of the TextEdit that has information from that row will be replaced with what is now in the model.

I'm sure that sounds confusing but if I can figure out how to check if any changes have been made to the row I am pretty sure I can figure the rest out eventually.

thanks for any help you can give!