qt 获取文件夹中文件名

    xiaoxiao2021-03-25  107

    bool TerminalCommand::command_cleancache(QString path){ QDir dir(path); QFileInfoList f_list=dir.entryInfoList(); dir.setFilter(QDir::Files|QDir::NoDot|QDir::NoDotAndDotDot|QDir::NoSymLinks); for(int i=0;i<f_list.count();i++){ QFileInfo f_info=f_list.at(i); QString stt=f_info.fileName(); qDebug()<<stt; } return true; }
    转载请注明原文地址: https://ju.6miu.com/read-20969.html

    最新回复(0)