I am having a very similar problem. I created a very small project, the point of which was to test how to use QProcess to launch applications. The same code that works to lauch Microsoft's Calculator ("calc.exe") won't launch my application. My application launches just fine from a DOS prompt or from Windows Explorer (doubleclick). Here is my code:
process_ptr
= new QProcess(this);
//process_ptr is declared in my header file QProcess *process_ptr;connect(process_ptr,SIGNAL(started()),this,SLOT(OnStarted()));
process_ptr->start(programName, arguments);
QString programName("c:/pcs");
QStringList arguments;
process_ptr = new QProcess(this); //process_ptr is declared in my header file QProcess *process_ptr;
connect(process_ptr,SIGNAL(started()),this,SLOT(OnStarted()));
process_ptr->start(programName, arguments);
To copy to clipboard, switch view to plain text mode
When I run this, my OnStarted() slot is called, so the QProcess object is emitting started(). But the first thing the application I am trying to launch does in main() is to create a file, which never happens when I try to launch it with the above code.
I'm sure there is something about my c:/pcs.exe app that is making it not work, but I have no idea what.
Bookmarks