Hi there,
I have encountered a QProcess problem when I trying to call QProcess::start().There is my source code:
QString temp
="\"C:\\Program Files\\Internet Explorer\\IEXPLORE.EXE\"";
process->startDetached(temp);
QProcess * process=new QProcess(this);
QString temp="\"C:\\Program Files\\Internet Explorer\\IEXPLORE.EXE\"";
process->startDetached(temp);
To copy to clipboard, switch view to plain text mode
My project is simple,I just want to open another application(*.exe) after I clicked the button on my current ui.This project works well,but when I replace the iexplore.exe with other Qt compiled execute file,It would not work any more.
Like this one:
QString temp
="\"E:\\QTProject\\openExe\\xmltest.exe\"";
process->startDetached(temp);
QProcess * process=new QProcess(this);
QString temp="\"E:\\QTProject\\openExe\\xmltest.exe\"";
process->startDetached(temp);
To copy to clipboard, switch view to plain text mode
I supervise the process->state() and it printed "2" which means the process had been already running,but there is nothing happend,just like I didn't do a thing. And all *.exe file, including xmltest.exe , I have tested are all compiled by Qt.4.8.
Has anyone known it about?Please help.
Bookmarks