QGuiApplication docs: clarify that QWidget needs QApplication
authorJ-P Nurmi <jpnurmi@digia.com>
Tue, 27 Nov 2012 10:38:39 +0000 (11:38 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Tue, 27 Nov 2012 18:31:21 +0000 (19:31 +0100)
Task-number: QTBUG-28076
Change-Id: I2ebbedd1916f472b9517b509f3b5499d93c71d45
Reviewed-by: Jing Bai <jing.bai@digia.com>
src/gui/kernel/qguiapplication.cpp

index 61c733b..2beddd2 100644 (file)
@@ -217,7 +217,9 @@ static inline void clearFontUnlocked()
     For any GUI application using Qt, there is precisely \b one QGuiApplication
     object no matter whether the application has 0, 1, 2 or more windows at
     any given time. For non-GUI Qt applications, use QCoreApplication instead,
-    as it does not depend on the \l QtGui library.
+    as it does not depend on the \l QtGui library. For QWidget based Qt applications,
+    use QApplication instead, as it provides some functionality needed for creating
+    QWidget instances.
 
     The QGuiApplication object is accessible through the instance() function, which
     returns a pointer equivalent to the global \l qApp pointer.