Is there a way to capure each & every element in tree/table view which are currently shown.

i have requirement like if my tree item meets certain requirement ex: if item data = 0000 expand It.

So like in model where in data function we can capture all the elements which are currently in view, similarly I need a way in view also so that i can Expand my item..

My use case: i am doing lazy population of tree. When i do this I am loading & showing only top 100 items in view & now if user expands some items in top 100 & he now scroll to end of the tree (or by press on end key he scroll to end of the tree) now i am re populating tree with last 100 items &now user press home & now i get top 100 items & repopulating a tree but here i am loosing expanded items.. now if I have model::data() like function i can expand few the items by storing expanded items unique values in my case they are database indexes.


Thanks in advance.