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

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

05-07 15:25