Qt判断文件 或 文件夹(路径)是否存在

1. 判断文件夹是否是存在 参数说明: QString fullPath;//文件夹全路径 /*方法1*/ bool isDirExist(QString fullPath) {     QDir dir(fullPath);     if(dir.exists())     {       return true;     }     return false; } /*方法2*/ bool i
相关文章
相关标签/搜索