There is no concept of "expanded" items in the model. It's a feature of the view.
There is no concept of "expanded" items in the model. It's a feature of the view.
Dear Wysota
What i am trying to do is, from the tree view, i would like to get the expaned items in the maptosource function?
And what is stopping you from doing that? QTreeView::isExpanded() returns information whether the view shows a particular index as expanded or not.
The problem is i cant get the treeitem to the maptosource...
You can store a pointer to the tree in the proxy model and then retrieve and use it in mapToSource and mapFromSource if you really have to.
Bookmarks