[Qt-interest] QDirModel v. QFileSystemModel ?

Stephen Collyer scollyer at netspinner.co.uk
Wed Jun 17 09:51:12 CEST 2009


2009/6/16 David Boddie <david.boddie at nokia.com>

> Stephen Collyer wrote:
>
> > Also, why is there no equivalent of QFileSystemModel::setRootPath(..) ?
> > Does QDirModel always provide access to the whole file system ?
>
> Yes, but you can limit what is shown in the view:
>
>  http://doc.qtsoftware.com/4.5/qdirmodel.html#details
>
>
Right. I've also discovered that setRootPath(..) doesn't do what I expected
anyway, and that it is vital that you limit what the view displays - AFAICS
there is no other way to display only the contents of a subdirectory in a
view,
even when using QFileSystemModel.

-- 
Stephen Collyer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090617/ad8eb436/attachment.html 


More information about the Qt-interest-old mailing list