--
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 python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/a3b9c833-d8d4-4b03-9209-e9025cea0d5a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I don't have an example to show you off the bat, but you would need to use a proxy model in between, which would handle listing the children of 'project'. Proxy models can do whatever they want, to remap the data coming from its source model, and representing it differently to any views asking for root level items, and then the children for those items, if any.
On Tue, Apr 7, 2015 at 5:00 PM Panupat Chongstitwattana <panu...@gmail.com> wrote:
If I set my rootPath to ......./project. And here's the folder structure under it.--
project
|-- foo
|-- bar
|-- asset
....|---- item1
....|---- item2
I want my QTreeView to display item1 and item2 under project without showing asset. Also ignore foo bar completely.
project
|---- item1
|---- item2
Would this be possible with QFileSystemModel? Could anyone show me some example please?
thank you!
Best regard,
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 python_inside_maya+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA0119OhfG06Dkbgui0PXqGJt5EaUdFcMwApT%3D7OrgkS9A%40mail.gmail.com.
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 python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/09a4ac69-e2e8-4002-90e5-2537f9218699%40googlegroups.com.