QFileInfo file("文件路径"); if(file.exists()==false) {文件不存在;} 转载于:https://www.cnblogs.com/nanqiang/p/10984802.html