Hello. I am trying to call the eog command (it's an image viewing software) from my Qt application. This is the code.
Qt Code:
  1. void MainWindow::doRawViewer(){
  2. QMessageBox::information(
  3. this,
  4. tr("Required Save"),
  5. tr("Save the image first in order to view this image under the system's default image viewer"));
  6. QString fileName = doRawSave();
  7. if (fileName.isNull())
  8. return;
  9. QProcess viewImageProcess(0);
  10.  
  11. #if defined(Q_OS_WIN32)
  12. viewImageProcess.start(fileName);
  13. #elif defined(Q_OS_LINUX)
  14. viewImageProcess.execute(QString("eog ") + fileName);
  15. // viewImageProcess.start(QString("eog ") + fileName);
  16. #endif
  17. }
To copy to clipboard, switch view to plain text mode 

eog runs properly and it correctly displays the image, the problem is when I close eog, my Qt application hangs. Is this a memory problem or I'm just not using QProcess::execute() and QProcess::start() correctly?

Also, I do not know how to use task manager in ubuntu. can anyone point me to how I can manage the Qt Application when it hangs? It does not force quit at all.