Qt 判断文件是否存在

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