title: Forcing the Qt GUI to update before entering a separate function
body: <p>This seems like it should be automatic, but apparently it's not.  I have the following code:</p>
  
  <pre><code>    ui.my_label-&gt;setText("Test 1...");
      ui.my_label-&gt;adjustSize();
  
      processThatTakesAbout30SecondsToFinish(files[0].toStdString());
  
      ui.my_label-&gt;setText("Finished.");
      ui.my_label-&gt;adjustSize();
  </code></pre>
  
  <p>What is happening is that I <em>never</em> see <code>"Test1...",</code> as the GUI seems to hang until the following function completes, and I eventaully only see "Finished.".  </p>
  
  <p>How can I make sure the GUI is updating before it enters that function?<br>
  Thanks.</p>