I wrote two Qt applications. One is the main and the other is a side way.
I am running Linux.
I read about QProcess
so I wrote this code:
QApplication a(argc, argv);
MainWindow w;
w.show();
QProcess P(&w);
QString programPath;
programPath=
"/Documents/Qt/test1-build-desktop-Qt_4_8_1_in_PATH__System__Release/test1";
P.start(programPath);
return a.exec();
However, nothing happens and just my main app (w
) runs.
What is my fault? Please help me.