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.
来源不记得了