You can either call submitAll() just in case there are any changes or connect to the dataChanged() signal in the model to keep your own track of data changes. If the signal fires, just set some flag that the model has pending changes and on quit just check that flag and act accordingly.
Bookmarks