How to get the file names from folder
-
Hi All
I have few files in a folder,so how to get the names of all these files without extension and store in stringlist.
-
You may use "QDir and entryList":http://doc.qt.nokia.com/4.7/qdir.html#entryList
-
look at
@
QStringList QDir::entryList ( const QStringList & nameFilters, Filters filters = NoFilter, SortFlags sort = NoSort ) const
@ -
or QDir::entryInfoList(..) which returns a QfileInfoList if you want more informations on the files.
-
[[Doc:QDirIterator]] is also worth taking a look at, depending on your use case.