Qt Windows打开指定文件注意替换双斜杠为单斜杠

QProcess::startDetached(QString("explorer %1").arg(strFilePath));

其中,在windows上使用时,strFilePath中的双斜杠需要替换为单斜杠,最终都变成"\"(replace \\ to \)。

posted @ 2019-03-07 16:59  冯耀耀  阅读(1146)  评论(0)    收藏  举报