Qt文件相关操作

文章目录[隐藏]

Qt 文件相关操作

1. 判断文件夹是否存在
bool ExcelWrite::chkDirIsExis(QString dirPath)
{

    QFileInfo fileInfo(dirPath);
    if(fileInfo.isDir())
    {
        return true;
    }
    return false;
}

Qt文件相关操作插图
posted @ 2020-03-16 20:05  不随。  阅读(3)  评论(0编辑  收藏  举报  来源