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

List:       kde-devel
Subject:    Project folder view
From:       Giles Turner <giles_kde () yahoo ! co ! uk>
Date:       2009-02-28 22:19:34
Message-ID: 200902282219.34325.giles_kde () yahoo ! co ! uk
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


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.

Thanks,
Giles

[Attachment #5 (text/html)]

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" \
"http://www.w3.org/TR/REC-html40/strict.dtd"><html><head><meta name="qrichtext" \
content="1" /><style type="text/css">p, li { white-space: pre-wrap; \
}</style></head><body style=" font-family:'Bitstream Vera Sans'; font-size:10pt; \
font-weight:400; font-style:normal;">Hi,<br> <p style="-qt-paragraph-type:empty; \
margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; \
-qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>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.<br> <p \
style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; \
margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>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.<br> \
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; \
margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; \
-qt-user-state:0;"><br></p>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.<br> <p \
style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; \
margin-right:0px; -qt-block-indent:0; text-indent:0px; \
-qt-user-state:0;"><br></p>Thanks,<br> Giles</p></body></html>



>> 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