Thank you for the replay!
I tried using these 2 functions but I don't get the desired result! The problem with setRootIndex is that if I use it like this:
QModelIndex parentIndex = myModel->index(0,0);
QModelIndex newIndex = myModel->index(0,0, parentIndex);
myTree->setRootIndex(newIndex);
I actually get the childs of AA ! not even the AA-parent is shown!!!




Reply With Quote


Bookmarks