[Interest] QDir::EntryList

Graham Labdon Graham.Labdon at avalonsciences.com
Fri Jul 24 11:40:59 CEST 2015

If I want to get a list of all files and sub folders in a folder, but excluding dot and dotdot I thought that this should do the trick

QDir myDir("somepath");
QStringList files = myDir.entryList(QDir::NoDotAndDotDot);

However, this seems to return no strings 
Removing the filter returns the list as expected but including dot and dotdot

Is this the correct behaviour or have I misunderstood something?


More information about the Interest mailing list