中文路径,解决方案 QByteArray filePathTo8Bit = filePath.toLocal8Bit(); src->url = std::string(filePathTo8Bit);