PDA

View Full Version : List sub-directories for a specified directory



Arshia Aghaei
1st July 2015, 04:51
Hi , I want to list all the subdirectories from a directory i got from the input. But i don't know how to do it. Can anyone hep me with this ?

jefftee
1st July 2015, 05:47
Look at QDir, QDir::entryList(), and QDir::entryInfoList() and use a filer in the QDir constructor or QDir::setFilter to ensure you get only directory entries, etc.

Arshia Aghaei
1st July 2015, 06:17
How to for example find all *.dll files in the directory (Extension filter) ?

jefftee
1st July 2015, 06:31
Use the name filter to filter based on file names, which includes extensions. i.e. *.dll