title: Why QSplashscreen does not always work?
body: <p>I've just coded splash screen in my PyQt application, to show an image before start. I've used QSplashscreen.
  The problem is the image is displayed, let's say, once in a 20 times. In other cases there is a grey rectangle displayed istead.
  Screenshots of both cases:</p>
  
  <p>Does work: <a href="http://dl.getdropbox.com/u/1088961/prob2.jpg" rel="nofollow">http://dl.getdropbox.com/u/1088961/prob2.jpg</a></p>
  
  <p>Does not work: <a href="http://dl.getdropbox.com/u/1088961/prob1.jpg" rel="nofollow">http://dl.getdropbox.com/u/1088961/prob1.jpg</a></p>
  
  <p>I tried to delay starting window, but if grey rectangle changes into picture it is just before vanishing (even if I delay everything 10 seconds).</p>
  
  <p>This is my code:</p>
  
  <pre><code># -*- coding: utf-8 -*-
  import sys
  from time import time, sleep
  from PyQt4.QtGui import QApplication, QSplashScreen, QPixmap
  
  from gui.gui import MainWindow
  
  def main():
      app = QApplication(sys.argv)
      start = time() 
      splash = QSplashScreen(QPixmap("aquaticon/images/splash_screen.jpg"))
      splash.show()
      if time() - start &lt; 1:
          sleep(1)
      win = MainWindow()
      splash.finish(win)
      win.show()
      app.exec_()
  
  if __name__ == "__main__":
      main()
  </code></pre>
  
  <p>I'm using Debian Linux with Fluxbox (but it is the same in Gnome).</p>