Hello,

perhaps this is the way to go.

Qt Code:
  1. QDir folder = QDir(___PATH___);
  2. folder.setFilter( QDir::Dirs | QDir::NoSymLinks);
  3.  
  4. QStringList dirListing= folder.entryList(QDir::NoDotAndDotDot | QDir::AllDirs);
To copy to clipboard, switch view to plain text mode 

after all you can use the function dirListing.count() to get the amount of the files in the specified dir.

use it witout any warranty I am a beginner ;O))