09-11-2012 08:19 AM
In the head file,entrylist function is described as below：
QStringList entryList(Filters filters = NoFilter, SortFlags sort = NoSort) const;
QStringList entryList(const QStringList &nameFilters, Filters filters = NoFilter,
SortFlags sort = NoSort) const;
If I want to get all files‘ path in specified directory such as shared/video,what shoud I do?
09-11-2012 11:27 AM
QT documentation seems have good description for QDir.
Did you have chance to look at it?
when you try to get the list of all the files under "share/video", you can declare a QDir object:
( Don't forget to request the permission for accessing the shared folder in the bar-descriptor.xml of your app)
then, you can use one of those two function to get the list.
Note: the above link provides the description about how to set "nameFilters", "filters", "sort".
Hope this helps.