QProcess::startDetached(QString("explorer %1").arg(strFilePath));
其中,在windows上使用时,strFilePath中的双斜杠需要替换为单斜杠,最终都变成"\"(replace \\ to \)。
QProcess::startDetached(QString("explorer %1").arg(strFilePath));
其中,在windows上使用时,strFilePath中的双斜杠需要替换为单斜杠,最终都变成"\"(replace \\ to \)。
转载于:https://www.cnblogs.com/fengyaoyao/p/10490765.html