void FindFile(const QString &_filepath)

{

  QDir dir(_filepath);

  for each (QFileInfo mfile in dir.entryInfoList())

  {

    if(mfile.isFile())

    {

      qinfo()<<mfile.fileName();

    }

    else

    {

      if(mfile.fileName()=="."||mfile.fileName()=="..") continue;

      qinfo()<<“进入文件夹:”<<mfile.absoluteFilePath();

      FindFile(mfile.absoluteFilePath());

    }

  }

}

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-24
  • 2021-06-20
  • 2021-08-21
  • 2021-10-16
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-02-02
相关资源
相似解决方案