From 181f6a4b76a278ded6e402aada657cfda2d3f638 Mon Sep 17 00:00:00 2001 From: Geir Vattekar Date: Fri, 24 Sep 2010 09:30:22 +0200 Subject: Doc: Said that QApplication exits when not able to open X11 display Task-number: QTBUG-13377 Reviewed-by: Jerome Pasion --- src/gui/kernel/qapplication.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/gui/kernel/qapplication.cpp b/src/gui/kernel/qapplication.cpp index 43d5772..e6dc623 100644 --- a/src/gui/kernel/qapplication.cpp +++ b/src/gui/kernel/qapplication.cpp @@ -711,6 +711,12 @@ void QApplicationPrivate::process_cmdline() done. \endlist + \section1 X11 Notes + + If QApplication fails to open the X11 display, it will terminate + the process. This behavior is consistent with most X11 + applications. + \sa arguments() */ -- cgit v0.12 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