QProcess run file
-
wrote on 3 Nov 2016, 17:38 last edited by
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. -
wrote on 3 Nov 2016, 17:42 last edited by
what is in
nombre1
andnombre2
? -
wrote on 3 Nov 2016, 20:21 last edited by
It's probably not the best idea trying to manage multiple processes simultaneously with a single QProcess object.
-
It's probably not the best idea trying to manage multiple processes simultaneously with a single QProcess object.
wrote on 3 Nov 2016, 21:24 last edited by@Wieland maybe i need to search other way
-
@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. -
wrote on 4 Nov 2016, 08:19 last edited by
@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
1/8