I have to run an external aplication (in windows an exe file) from a qt aplication. With this code works correctly, but when i change to other aplication and the external app is running, qt app is all white(no controls, no boxes....) and when the external app finished, qt show all widget correctly.
QString fullinputName
=TXTDatosArchivo
->text
();
Parameters<<fullinputName;
myProcess->waitForFinished();
int salida = myProcess->execute(strprocess,Parameters);
if (salida!=0){
QMessageBox::critical(this,
"Error",lang
->leer_idioma
("148").
arg(strprocess
));
........
}else{
..........}
QString fullinputName=TXTDatosArchivo->text();
QStringList Parameters;
Parameters<<fullinputName;
QString strprocess="GDAM.exe";
QProcess *myProcess=new QProcess(this);
myProcess->waitForFinished();
QApplication::setOverrideCursor(Qt::WaitCursor);
int salida = myProcess->execute(strprocess,Parameters);
if (salida!=0){
QMessageBox::critical(this,"Error",lang->leer_idioma("148").arg(strprocess));
QApplication::restoreOverrideCursor();
........
}else{
..........}
To copy to clipboard, switch view to plain text mode
Some help please!!!!!!!
Bookmarks