qt 下判断文件或目录是否存在?

来源:互联网 发布:迅龙数据恢复官网 编辑:程序博客网 时间:2024/05/29 18:12

qt 下判断文件或目录是否存在

 

bool QFileInfo::exists () const
Returns true if the file exists; otherwise returns false.

 

bool QFileInfo::isDir () const
Returns true if this object points to a directory or to a symbolic link to a directory; otherwise returns false.

 

来源不记得了