diff options
author | J-P Nurmi <jpnurmi@digia.com> | 2012-11-27 11:38:39 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2012-11-27 19:31:21 +0100 |
commit | 027168168cb94ed4521816dc98ffcae4268d555a (patch) | |
tree | a47532af56f138618f61e24c0b5c15cf6e8d5478 /src/gui | |
parent | 114f247773c2ba7d7a04dec5381be73841ff965a (diff) |
QGuiApplication docs: clarify that QWidget needs QApplication
Task-number: QTBUG-28076
Change-Id: I2ebbedd1916f472b9517b509f3b5499d93c71d45
Reviewed-by: Jing Bai <jing.bai@digia.com>
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/kernel/qguiapplication.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gui/kernel/qguiapplication.cpp b/src/gui/kernel/qguiapplication.cpp index 61c733b493..2beddd2cd6 100644 --- a/src/gui/kernel/qguiapplication.cpp +++ b/src/gui/kernel/qguiapplication.cpp @@ -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. |