I just tried to use QSplashScreen and nothing is happening. I mean, my app opens without showing the splash screen even if I put a 10 second sleep before the app is launched ...
What am I doing wrong ? Here is the code: def main(): sys.argv.append("-style=plastique") app = QApplication(sys.argv) app.setApplicationName("Morgane") ########################## splash=QSplashScreen(QPixmap("Morgane_splash.jpg"), Qt.WindowStaysOnTopHint) splash.show() splash.showMessage('Loading ...') app.processEvents() ############################### form = MainWindow() form.setWindowTitle("Morgane - if at first the idea is not absurd, then there's no hope for it (A. Einstein)") form.show() app.connect(app, SIGNAL("lastWindowClosed()"), app, SLOT("quit()")) sleep(10) splash.finish(form) app.exec_() -----Message d'origine----- De : pyqt-boun...@riverbankcomputing.com [mailto:pyqt-boun...@riverbankcomputing.com]de la part de Phil Thompson Envoyé : jeudi 12 février 2009 16:51 À : Frédéric Cc : pyqt@riverbankcomputing.com Objet : Re: [PyQt] Splash screen On Thu, 12 Feb 2009 16:34:57 +0100, Frédéric <frederic.mantega...@gbiloba.org> wrote: > My application dynamically loads the ui files, using the uic module. On a > recent PC, there is no problem, but when running on small devices, like > Nokia N8x0, the application takes a few seconds before showing the main > window. > > Users asked me to show a little splash screen, to show that the > application is alive during startup. > > How do I implement this? Is there some example code arround? QSplashScreen is pretty easy to use. Phil _______________________________________________ PyQt mailing list PyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt This mail has originated outside your organization, either from an external partner or the Global Internet. Keep this in mind if you answer this message. The information in this e-mail is confidential. The contents may not be disclosed or used by anyone other then the addressee. Access to this e-mail by anyone else is unauthorised. If you are not the intended recipient, please notify Airbus immediately and delete this e-mail. Airbus cannot accept any responsibility for the accuracy or completeness of this e-mail as it has been sent over public networks. If you have any concerns over the content of this message or its Accuracy or Integrity, please contact Airbus immediately. All outgoing e-mails from Airbus are checked using regularly updated virus scanning software but you should take whatever measures you deem to be appropriate to ensure that this message and any attachments are virus free. _______________________________________________ PyQt mailing list PyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt