QProcess start new instance
-
I launch a new process using QProcess:
QProcess* pobjProc(new QProcess()); pobjProc->start(strModule); if ( !pobjProc->waitForStarted() ) { delete pobjProc; return; } const Q_PID cpid(pobjProc->pid()); mmpProcesses.insert(cpid, pobjProc);
For testing I'm using gedit as the module to launch, the problem I'm seeing is that I want to be able to launch multiple instances and calling this again doesn't, it does re-focuses the already running instance of gedit.
Do I need to add something to indicate new instance intended? This is using Qt 4.8
[Edit] I've also tried the using startDetached same result, only one instance is launched.
-
This is a behavior of your app you're starting - look for a command line argument to allow more than one instance of this application.
-
This is a behavior of your app you're starting - look for a command line argument to allow more than one instance of this application.
@Christian-Ehrlicher , typical, I picked this application at random just to test and it does indeed have an argument --new-window to launch a new instance.