well, as the documentation says, there is no way for u to monitor even the subfolders. but there is always a workaround in QT, so here is how u can easily create a stringlist of the sub-folders inside a folder: use the following function
{
dir.
setFilter(QDir::Dirs);
QFileInfoList list = dir.entryInfoList();
for (int i = 0; i < list.size(); ++i) {
dirList << fileInfo.fileName();
}
return dirList;
}
QStringList subFoldersList(QString folder)
{
QDir dir(folder);
dir.setFilter(QDir::Dirs);
QFileInfoList list = dir.entryInfoList();
QStringList dirList;
for (int i = 0; i < list.size(); ++i) {
QFileInfo fileInfo = list.at(i);
dirList << fileInfo.fileName();
}
return dirList;
}
To copy to clipboard, switch view to plain text mode
this way u can get the stringlist of subfolders and then u can use addPaths() easily
Bookmarks