zorro68
29th November 2007, 10:05
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();
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{
..........}
Some help please!!!!!!!
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{
..........}
Some help please!!!!!!!