Reading the content of a directory
-
You already have taken a look at the "FolderListModel example":http://doc.qt.nokia.com/4.7/src-imports-folderlistmodel.html, haven't you?
-
So you want to have a QStringList with the contents of a directory - what does this have to do with QML? If you are planning to expose this list to QML just to access the directory listing go for the FolderListModel instead.
Nevertheless, if you take a look at the "class list":http://developer.qt.nokia.com/doc/qt-4.8/classes.html#d, which one might be suitable to iterate over directories?