How can I list/take only directories from a directory?
E.g.
Qt Code:
  1. QDir directory = new QDir;
  2. directory.setFolderMode(); //example ! :P
  3. directory.setCurrent("/home/alex/");
  4. for (int i =0; i > directory.count(); i++){
  5. directory.at(i) //mpla mpla...
  6. }
To copy to clipboard, switch view to plain text mode 
Very sample code, it's just to understand what i want to achieve...
Well, that's what i want to do... Take the subfolder names from a specific dir and perform some actions with each one separately...
Is there any way to do this?