PDA

View Full Version : How to get a list of file names in a directory?



khanhsk
8th February 2012, 02:21
I'm writing an application using Qt. I want to get a list of names of photos in a folder when the program runs.
But now I do not know how to do it. Who can help me this problem is not? Thanks a lot!

wysota
8th February 2012, 02:29
QDir::entryList() or QDir::entryInfoList() depending on your needs.

khanhsk
8th February 2012, 02:34
wysota, thanks a lot!:o