Hi I'm trying to build a PyQt (4.3) frontend for my CdCat catalogs. They are a compressed XML files, which basicaly describes some kind of filesystem like this: <catalog> <media> <!-- This could be a CD, DVD, or Network Drive --> <folder> <file></file> <file></file> </folder> <file></file> </media> <media> ... </media> </catalog>
So, a catalog has a lot of "media", each media has the actual filesystem structure: files and folders. The thing is, I want to represent that structure on a treeview (I'm using a Tree Widget, right now), and a TableView, just like CDCat. The tree view has the Catalog, as root, and medias as direct childs, when you open those media childs, the files and folders unfold. And the table view? Well, when you click on the catalog, the tree view show direct child, the medias. When you click on a Media, it shows the direct childs of that media, the files and folders on the top level of the CD, DVD, Net Drive, o whatever the media was. I don't see how to model this thing on the Qt's model/view. Thanks Nahuel _______________________________________________ PyQt mailing list PyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt