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 <[email protected]> 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 [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/python_inside_maya/a3b9c833-d8d4-4b03-9209-e9025cea0d5a%40googlegroups.com > <https://groups.google.com/d/msgid/python_inside_maya/a3b9c833-d8d4-4b03-9209-e9025cea0d5a%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/CAPGFgA0119OhfG06Dkbgui0PXqGJt5EaUdFcMwApT%3D7OrgkS9A%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
