...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
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:
>
> # --
>
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
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