Qt Windows打开指定文件注意替换双斜杠为单斜杠
QProcess::startDetached(QString("explorer %1").arg(strFilePath));
其中,在windows上使用时,strFilePath中的双斜杠需要替换为单斜杠,最终都变成"\"(replace \\ to \)。
Hunter药药
QProcess::startDetached(QString("explorer %1").arg(strFilePath));
其中,在windows上使用时,strFilePath中的双斜杠需要替换为单斜杠,最终都变成"\"(replace \\ to \)。