diff options
author | David Boddie <david.boddie@nokia.com> | 2010-11-04 12:28:42 (GMT) |
---|---|---|
committer | David Boddie <david.boddie@nokia.com> | 2010-11-04 12:28:42 (GMT) |
commit | 828003fb654f33de52585883ed5e7441f925af75 (patch) | |
tree | e4f8dd5de0101b89d30b5ff4eccdc228719036d1 /src | |
parent | 852cefcbcc92006dcb18c846f4e2f2dfe5b56410 (diff) | |
download | Qt-828003fb654f33de52585883ed5e7441f925af75.zip Qt-828003fb654f33de52585883ed5e7441f925af75.tar.gz Qt-828003fb654f33de52585883ed5e7441f925af75.tar.bz2 |
Doc: Removed note about some Qt classes working without an application.
The QString example turned out to be a poor one because it requires
an application instance in cases where text codecs need to be set up
for the user's locale.
Diffstat (limited to 'src')
-rw-r--r-- | src/corelib/kernel/qcoreapplication.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/corelib/kernel/qcoreapplication.cpp b/src/corelib/kernel/qcoreapplication.cpp index d3f399b..5598187 100644 --- a/src/corelib/kernel/qcoreapplication.cpp +++ b/src/corelib/kernel/qcoreapplication.cpp @@ -406,11 +406,10 @@ QString qAppName() operations can call processEvents() to keep the application responsive. - Some Qt classes, such as QString, can be used without a - QCoreApplication object. However, in general, we recommend that - you create a QCoreApplication or a QApplication object in your \c - main() function as early as possible. exit() will not return - until the event loop exits; e.g., when quit() is called. + In general, we recommend that you create a QCoreApplication or + a QApplication object in your \c main() function as early as + possible. exit() will not return until the event loop exits; + e.g., when quit() is called. Several static convenience functions are also provided. The QCoreApplication object is available from instance(). Events can |