QString path="C:/formatCleared/"+fileName;//获取程序当前目录
path.replace("/","\\");//将地址中的"/"替换为"\",因为在Windows下使用的是"\"。
QProcess::startDetached("explorer"+path);//打开上面获取的目录
QString path="C:/formatCleared/"+fileName;//获取程序当前目录
path.replace("/","\\");//将地址中的"/"替换为"\",因为在Windows下使用的是"\"。
QProcess::startDetached("explorer"+path);//打开上面获取的目录
转载于:https://www.cnblogs.com/quhongyue/p/3342103.html