UID:195010
UID:7394
dbzhang800:用QProcess时,你的A.exe的工作目录是你的 B.sct 所在目录吗? (2019-05-13 19:04)
UID:175171
砍猪佩琪:是的,我还特意把B.SCT拷进A的工作目录了,重点是我在外面直接手动打开A的话是一切正常的 (2019-05-14 09:01)
dbzhang800:你是不是分不太清两个概念:工作目录 与 可执行程序所在目录 (2019-05-14 09:38)
青空飞羽:你用QProcess的setWorkingDirectory()设置工作目录了吗?The process will be started in the directory set by setWorkingDirectory(). If workingDirectory() is empty, the working directory is inherited from the calling process. (2019-05-14 09:09)