Code reflects exactly the TreeView model example in the qt documentation.

A few more hints I just discovered, hope someone is able to show me the light:

1) The problem isn't in the proxy model, I tried to remove my custom filter/sorting routines and use the base class ones and the problem still persist

2) The problem happens only if I collapse an item while one of its childs is selected !!!! If I deselect the child and collapse the item, that item never gets auto-expanded again...

Any hint ?