QT 过滤文件夹下指定文件
QDir *dir=new QDir(current_dir+"log/");
QStringList filter;
filter<<"*.log";
dir->setNameFilters(filter);
QList<QFileInfo> *fileInfo=new QList<QFileInfo>(dir->entryInfoList(filter));
QDir *dir=new QDir(current_dir+"log/");
QStringList filter;
filter<<"*.log";
dir->setNameFilters(filter);
QList<QFileInfo> *fileInfo=new QList<QFileInfo>(dir->entryInfoList(filter));