PDA

View Full Version : How to get no. of files and folders in the exixting directory?



merry
4th August 2008, 08:34
Hi all

I am working on Qt4.2 on MAC-Intel machine, can anybody tells me that how can i get total no. of files and folders in the existing directory selected using QFileDialog.

lyuts
4th August 2008, 09:02
Look at QDir's count()



uint QDir::count () const