Qt 判断文件是否存在

包含头文件:<QFileInfo>

代码:

QFileInfo file("文件路径");
if(file.exists()==false)
{文件不存在;}



原文地址:https://www.cnblogs.com/cszlg/p/3234823.html