PDA

View Full Version : Finding Files



arbi
19th August 2009, 15:17
Hi,

i am writing an Explorer-like program by which you can browse in the File system.

I need to add a find function to my program.

What is the fastest way to do this in Qt.
I mean the fastest in running time not in coding time.

i hope i don't have to traverse the folders recursively by myself.

thanks...

yogeshgokul
19th August 2009, 15:22
See Qt Find File Example (http://pepper.troll.no/s60prereleases/doc/dialogs-findfiles.html).

arbi
19th August 2009, 15:32
thanks ;

but this example does not have recursive search like Explorer does.
I need to search for a file name recursively?

QDir::entryList() method does not work recursively which this example demonstrates.

nish
20th August 2009, 05:32
why cant you use a recursive algorithm like we did in our school for finding out the factorial? ..
just call the function again for each dir found in entrylist().

lyuts
21st August 2009, 15:30
If your application is going to run only on unix/linux then i think you could just use shell's find.