Re: [PyQt] File Filtering using QFileSystemModel & QTreeView

2012-03-09 Thread JPolk
...looking at my old code,...I also do a ".setRootIndex"like so: libmodel1 = QtGui.QFileSystemModel() libmodel1.setFilter(QDir.AllDirs | QDir.NoDotAndDotDot | QDir.AllEntries) libmodel1.setNameFilters(filter) libmodel1.setNameFilterDisables(False) *libmodel1.setRootPath(QDir.rootPath() ) libmo

Re: [PyQt] File Filtering using QFileSystemModel & QTreeView

2012-03-09 Thread hosscomp
JPolk wrote > > hey guys, > I've read all the documentation and for the life of me, I can't find > the > solution to initiate simple file filtering (by extension) in > QFileSystemModel, > and/or using QDirModel / QDir... > > Here's my code: > > # -- >    

Re: [PyQt] File Filtering using QFileSystemModel & QTreeView

2011-03-04 Thread David Boddie
On Tue Mar 1 23:28:01 GMT 2011, James Polk wrote: > I've read all the documentation and for the life of me, I can't find > the solution to initiate simple file filtering (by extension) in > QFileSystemModel, and/or using QDirModel / QDir... > > I just want a Treeview of files and directory, bu

[PyQt] File Filtering using QFileSystemModel & QTreeView

2011-03-01 Thread James Polk
hey guys, I've read all the documentation and for the life of me, I can't find the solution to initiate simple file filtering (by extension) in QFileSystemModel, and/or using QDirModel / QDir... I just want a Treeview of files and directory, but excluding certain files by their extensions