Reading the content of a directory
-
How to write the content of a directory, the files and other directories?
-
Double post.
-
You already have taken a look at the "FolderListModel example":http://doc.qt.nokia.com/4.7/src-imports-folderlistmodel.html, haven't you?
-
Nono i mean: how to put in a qstringlist all the files and folders contained in a folder.
-
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?