title: Should I use QCoreApplication::processEvents() or QApplication::processEvents()?
body: <p>I have a method which is called from both <code>QThreads</code> and the main thread.  this method can sometimes take a long time to do its computations in a loop so I put <code>QCoreApplication::processEvents()</code> and this prevents the GUI from freezing.  At some point I had changed <code>QCoreApplication::processEvents()</code> for <code>QApplication::processEvents()</code> but that caused the GUI to freeze (im pretty sure thats what was fereezing it because since I put <code>QCoreApplication::processEvents()</code> back it hasnt frozen again)  Am I right to think that calling <code>QApplication::processEvents()</code> from both the main thread and QThreads can freeze the GUI?</p>