PDA

View Full Version : QDir entryInfoList does not give Folders



sedi
1st December 2012, 22:19
Hi,

I have a valid QDir sourceDir of which I want to have a list of all files and folders - to walk down through them recursively.
To my surprise, this line


QFileInfoList fiList= sourceDir.entryInfoList(QDir::NoDotAndDotDot | QDir::System | QDir::Hidden | QDir::AllDirs | QDir::Files, QDir::DirsFirst);

only gives me files, no folders at all.

What am I doing wrong?
I am working in Necessitas Qt 4.8.2 for Android, the compiler is gcc and I am testing on a Galaxy S2.

Edit:
On windows the code is working fine.
I will therefore ask this in the Necessitas mailing list. Sorry. I will write a solution here if there is one.