Yea it would either be using an AbstractProxyModel (or QSortProxyModel), or
splitting them up into multiple views at different root paths. Then it
might be a matter of reimplementing:
hasChildren()
canFetchMore()
fetchMore()
rowCount()

...so that when you are given the 'parent' item, you would return the
correct number of grandchildren and or if the parent has grandchildren,
and returning the grandchildren.


On Tue, Apr 7, 2015 at 6:24 PM Panupat Chongstitwattana <[email protected]>
wrote:

> I thought about that too. Since I store the base path of each project in
> database, I could load them into a combo box and set the root path
> according to user input.
>
> If I am able to do this with 1 QTreeView tho it would be real nice because
> there are couple more folders in between that I'd like to apply this trick.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Python Programming for Autodesk Maya" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/python_inside_maya/09a4ac69-e2e8-4002-90e5-2537f9218699%40googlegroups.com
> <https://groups.google.com/d/msgid/python_inside_maya/09a4ac69-e2e8-4002-90e5-2537f9218699%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA0kbrdFo2Vy3mhTLT9YUwnBk%3DAdkYwcJc6Xeo7_8KYz5Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to