Unsolved QProcess run file
-
Hi i will have one program principal to use for me. And i want to call create two buttons and then when i press show me my other program.
But my problem is when i do this:
QProcess proceso;
proceso.setWorkingDirectory(Mydir);
proceso.start("./"+nombre1);
proceso.start("./"+nombre2);Not seems to run my other program's that i want to use.
It's because i want to include some different's version of my program of contability. -
what is in
nombre1
andnombre2
? -
It's probably not the best idea trying to manage multiple processes simultaneously with a single QProcess object.
-
@Wieland maybe i need to search other way
-
@VRonin nombre are the other version of my file.
-
@Jeronimo Just use one QProcess instance for each program you want to start, not one QProcess for all programs.
-
@Jeronimo
You really should hook up
http://doc.qt.io/qt-5/qprocess.html#errorOccurred
so you can output any errors. Else you are just flying blind. -
@Jeronimo said in QProcess run file:
version of my file
if you are trying to open a file rather than starting a process then use
QDesktopServices::openUrl