diff options
author | Laszlo Agocs <laszlo.agocs@qt.io> | 2017-11-14 17:38:21 +0100 |
---|---|---|
committer | Laszlo Agocs <laszlo.agocs@qt.io> | 2018-01-10 09:24:21 +0000 |
commit | e82e8b8a1fdff693dae99c925ca34c1af4a032af (patch) | |
tree | 8d43451ff1faac71d1228a44fbf5b3d96eedfdeb /src/corelib/kernel/qcoreapplication.cpp | |
parent | 73a5a93ff982a2e783828b1e11988614d38d8687 (diff) |
Document Q_COREAPP_STARTUP_FUNCTION is no good in static libs
Change-Id: Iaffa08332c87095a64e25e2da4ed56bfd3d0e84f
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/kernel/qcoreapplication.cpp')
-rw-r--r-- | src/corelib/kernel/qcoreapplication.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/corelib/kernel/qcoreapplication.cpp b/src/corelib/kernel/qcoreapplication.cpp index db40b37da9..c0ace26f28 100644 --- a/src/corelib/kernel/qcoreapplication.cpp +++ b/src/corelib/kernel/qcoreapplication.cpp @@ -2834,6 +2834,10 @@ void QCoreApplication::setEventDispatcher(QAbstractEventDispatcher *eventDispatc If QCoreApplication is deleted and another QCoreApplication is created, the startup function will be invoked again. + + \note This macro is not suitable for use in library code that is then + statically linked into an application since the function may not be called + at all due to being eliminated by the linker. */ /*! |