Qt Forum - programming with C++ and Qt
Register Calendar Members List Team Members Search Frequently Asked Questions Go to the Main Page

Qt Forum - programming with C++ and Qt » QtForum.org » Qt » Qt Programming » listing directory contents with project heading » Hello Guest [Login|Register]
Last Post | First Unread Post Print Page | Recommend to a Friend | Add Thread to Favorites
Post New Thread Post Reply
Go to the bottom of this page listing directory contents with project heading
Author
Post « Previous Thread | Next Thread »
kvrama
Assistant


Registration Date: 08.05.2008
Posts: 1

Level: 1 [?]
Experience: 9
Next Level: 10

1 points of experience needed for next level

listing directory contents with project heading Reply to this Post Post Reply with Quote Edit/Delete Posts Report Post to a Moderator       Go to the top of this page

Hi,

I am new to Qt prgramming. I have requirement to list the directry structure of different projects folders like

+ projects
|
+ Qt project
|
+ c:\Qt ## actual directory listing starts here
|
....
+ Qtopia prject
|
+ d:\Qtopia ## actual directory listing starts here
|
....

I know i can use the QDirModel, but that doesnt give the required.

here
1. these derectories are from different drives
2. the first item should be "projects"(can take anyother value)
3. the next immediate items will be names of the projects

can anybody help me? expecting piece of code also

This is what I know:
I need to subclass the QAbstractItemModel to implement this. I need to return the data depending on the defferent depth. Here my question is how to find the depth of an index in this case and how to map the index of my model to QDirModel index

thanks in advance
08.05.2008 19:03 kvrama is offline Send an Email to kvrama Search for Posts by kvrama Add kvrama to your Buddy List
Tree Structure | Board Structure
Jump to:
Post New Thread Post Reply
Qt Forum - programming with C++ and Qt » QtForum.org » Qt » Qt Programming » listing directory contents with project heading

views today: 9.860 | views yesterday: 17.520 | total views: 10.243.229


Klebekork Shop - Linux Shop - Kontaktanzeigen - Linux Forum -  SMS Gewinnspiel -  Hotels -  Stadtpläne -  Branchenbuch & Stadtplan

Branchenbuch Österreich - Branchenbuch Niederlande - Portugal Branchenverzeichnis - Spanien Branchenverzeichnis 
Telefonbuch - Branchenbuch Frankreich