Comparing two abstractItemModels
Hi all this is more of a design question.
Say I have two QAbstractItemModels where i would like to compare the elements with in each to find elements that are different, where each element contains a comparison function. What approach would you take.
Well, are those two QAbstractItemModel objects instances of the same class? Because, if it is, you can easily create a method that take the other instance as a parameter, and returns a list of the elements that are not in the two models.
If it is two different classes, well, I'll be a bit more difficult ^^.