mkdir bbd ssd
touch cca ccb

when use QDir like this

Qt Code:
  1. QDir mydir("/path");
  2.  
  3. QStringList desktopList = mydir.entryList(QDir::AllEntries | QDir::NoDotAndDotDot | QDir::Hidden |QDir::System, QDir::Type );
  4.  
  5. qDebug() << "desktopList" << desktopList;
To copy to clipboard, switch view to plain text mode 
the right result is :
bbd ssd cca ccb

but
result is :
bbd cca ccb ssd


bbd,ssd is dir