这个文件AMS\api\myhelper.h的
//复制文件
static bool CopyFile(QString sourceFile, QString targetFile)
{
if (FileIsExist(targetFile)){
int ret=QMessageBox::information(0,"提示","文件已经存在,是否替换?",QMessageBox::Yes | QMessageBox::No);
if (ret!=QMessageBox::Yes){
return false;
}
}
return QFile::copy(sourceFile,targetFile);
}
这个函数好像有问题啊?