[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: Project folder view
From:       Pino Toscano <toscano.pino () tiscali ! it>
Date:       2009-03-01 17:14:33
Message-ID: 200903011814.38429.toscano.pino () tiscali ! it
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


Hi,

> I am trying to write a KDE application that will show a view of a project
> folder as a tree, with the root node of the tree set to the top folder in
> the project.
>
> I have tried using QFileSystemModel, which looks like it should provide the
> functionality I need, but it always shows the complete file hierarchy of
> the entire hard drive. This is despite using setRootPath() to point to the
> project folder.
>
> What is the simplest approach, or the best classes to use to show the file
> tree of a specific folder? I just need to display the names of the
> folders/files, I am not interested in dates, sizes, etc.

If you are writing a KDE application, KDirModel (from the KIO library) is the 
best choice.

-- 
Pino Toscano

["signature.asc" (application/pgp-signature)]

>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic