#include <QUrl>
QString runPath = QCoreApplication::applicationDirPath()//闷庆散获取exe路劲
QString Name = “student.rtf"”
QString AllPath = QString("蚂氏%1/%2").arg(runPath).arg(Name)
QFile bfilePath(AllPath)
if(!bfilePath.exists()){//是否存在差颤
return
QDesktopServices::openUrl(QUrl::fromLocalFile(QFileInfo("文件名高返.文键祥件后缀稿念搏").absoluteFilePath()))欢迎分享,转载请注明来源:内存溢出
评论列表(0条)