title: How to use a process (QProcess) in a new thread (QThread)?
body: <p>I have the following code:</p>
  
  <pre><code> void Processmethod()
  {
  
      QDialog *ProcessMessage = new QDialog;      
      Ui::DialogProcessMessage Dialog;            
      Dialog.setupUi(ProcessMessage);             
      ProcessMessage-&gt;setModal(true);
      ProcessMessage-&gt;setAttribute(Qt::WA_DeleteOnClose); 
      ProcessMessage-&gt;show();
  
      qApp-&gt;processEvents();
  
      processmethodONE();  
      processmethodTWO();
      processmethodTHREE();                  
  }
  
  void processmethodONE()
  {
      QString ProcessCommand = "w8 " + blablubli";            
  
      Prozess.setWorkingDirectory(Path);         //QProcess "Prozess" is globaly defined  
      Prozess.setStandardOutputFile(Path);       //in my class
  
      QThread* thread = new QThread;
      Prozess.moveToThread(thread);
      Prozess.start(ProcessCommand);
  
  
  while(!Prozess.waitForFinished(2000))
     {
         std::cerr &lt;&lt; "Process running " &lt;&lt; std::endl;
     }
  
  QProcess::ExitStatus Status = Prozess.exitStatus(); 
  
  if (Status == 0)
   {
     std::cout &lt;&lt; "File created!" &lt;&lt; std::endl;
   }
  }
  </code></pre>
  
  <p>In this source code I try to open a popup dialog before some processes are starting. problem is that the dialog is not clickable, but on the dialog I want to create a button to abort the running method. As you can see I tried using QThread to run the process(es) in another thread, but still I can't click the dialog. Furthermore if I open my application (GUI) with the "application/x-executable"-file the dialogs content is missing when activating the above shown method. How can I fix these problems? Where am I wrong? greetings</p>