From 4286d8d20eae7b0876acc5afcecebc03cfc2514a Mon Sep 17 00:00:00 2001 From: Geir Vattekar Date: Fri, 24 Sep 2010 09:33:53 +0200 Subject: Doc: call qApp->precessEvents after QSplashScreen::showMessage Task-number: QTBUG-13734 Reviewed-by: Jerome Pasion --- src/gui/widgets/qsplashscreen.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/gui/widgets/qsplashscreen.cpp b/src/gui/widgets/qsplashscreen.cpp index 8be0cf8..d1fb686 100644 --- a/src/gui/widgets/qsplashscreen.cpp +++ b/src/gui/widgets/qsplashscreen.cpp @@ -186,6 +186,13 @@ void QSplashScreen::repaint() Draws the \a message text onto the splash screen with color \a color and aligns the text according to the flags in \a alignment. + To make sure the splash screen is repainted immediately, you can + call \l{QCoreApplication}'s + \l{QCoreApplication::}{processEvents()} after the call to + showMessage(). You usually want this to make sure that the message + is kept up to date with what your application is doing (e.g., + loading files). + \sa Qt::Alignment, clearMessage() */ void QSplashScreen::showMessage(const QString &message, int alignment, -- cgit v0.12