title: QLabel setText not displaying text immediately before running other method
body: <p>I have a basic label that is supposed to indicate to the user that the program is searching directories for several seconds. So it goes like...</p>
  
  <pre><code>self.label.setText(QString("Searching..."))
  # method to search directories goes here
  self.label.setText(QString("Search Complete"))
  </code></pre>
  
  <p>My problem is that the label never displays "Searching...". The execution always seems to jump straight to run the method to scan directories, and then the label text is set to "Search Complete" after the method which scans directories has finished.  </p>
  
  <p>I'd be grateful if someone could please explain why this is happening or suggest a better way to resolve the problem.</p>
  
  <p>many thanks</p>