Get only files but not directories in QT?

Viewed 20887

When I do this:

QDir myDir("/home/some/location");
QStringList filesList = myDir.entryList("*");

it is returning both the files and the directories inside that location. But I want only files. And the files can have arbitrary extensions. Any ideas?

2 Answers
Related