title: Qt (4.8.2) GUI - Own main loop instead of QApplication::exec()
body: <p>I would like to ask, if it is possible to use a custom main loop instead of running a.exec():</p>
  
  <pre><code>int main(int argc, char *argv[])
  {
      QApplication a(argc, argv);
      Window r;
      r.showFullScreen();
      return a.exec(); 
  }
  </code></pre>
  
  <p>something like:</p>
  
  <pre><code>int main(int argc, char *argv[])
  {
      QApplication a(argc, argv);
      Window r;
      r.showFullScreen();
  
      while(a.processOneEvent()) {
          read_event_from_legacy_system
      }
  
      return 0; 
  }
  </code></pre>
  
  <p>In GTK I could use <em>gtk_main_iteration_do()</em> so I thought there is maybe something similar in Qt?</p>
  
  <p>Or is there any other correct way to read custom events from a specific legacy system?</p>
  
  <p>EDIT: The events which a read from the FIFOs are not system events (such as X11) they are just a struct which is sent via a FIFO to realize ipc.</p>