I tried out ModelTest and it helped me find some corner cases that I hadn't
thought about.
However, my model fail the childIndex == childIndex1 test and the model->parent(index) != parent test
(I ended up modify ModelTest so that it only reports problems instead of core dumping.)
After looking at my code (and the code in "C++ GUI Programming with Qt 4" that I used as a guide)
I'm not sure these are really problems.
I put ModelTest into the book's chap10/regexpparser example and that fails the same way. (Actually
reassuring :-)
I also put ModelTest into demos/interview at it fails the same way. In fact, it fails over a million times.
It seems that if you only have one *real* object (eg Node) for all the different columns of a particular
row there's no way to avoid the model->parent(index) != parent problem.
I'm fairly new to model/view and it is definitely challenging to rap my head around modelIndex,
so perhaps I'm missing something.
Comments?