In order to save a QStandardItemModel to file, I would like to detect if changes where made to the model or not.
Changes may be:
The idea is to set a bool to true if a change is detetced.
How can the model be monitored with respect to changed data?
The model emits all sorts of signals when any change happens. Just look into its base class (QAbstractItemModel
). Connect to those signals and you'll be able to know exactly which changes are happening.