QFileInfo file("文件路径"); if(file.exists()==false) {文件不存在;}
Qt 判断文件是否存在
原文:https://www.cnblogs.com/nanqiang/p/10984802.html