![]() |
Qt 6.x
The Qt SDK
|
#include "qcoreapplication.h"#include "qcoreapplication_p.h"#include "qabstracteventdispatcher.h"#include "qcoreevent.h"#include "qcoreevent_p.h"#include "qeventloop.h"#include "qmetaobject.h"#include <private/qproperty_p.h>#include "qcorecmdlineargs_p.h"#include <qdatastream.h>#include <qdebug.h>#include <qdir.h>#include <qfile.h>#include <qfileinfo.h>#include <qmutex.h>#include <private/qloggingregistry_p.h>#include <qscopeguard.h>#include <qstandardpaths.h>#include <qthread.h>#include <qthreadstorage.h>#include <private/qthread_p.h>#include <qlibraryinfo.h>#include <qvarlengtharray.h>#include <private/qfactoryloader_p.h>#include <private/qfunctions_p.h>#include <private/qlocale_p.h>#include <private/qlocking_p.h>#include <private/qhooks_p.h>#include <stdlib.h>#include <qtcore_tracepoints_p.h>#include <algorithm>#include <memory>#include <string>#include "moc_qcoreapplication.cpp"
Include dependency graph for qcoreapplication.cpp:Go to the source code of this file.
Classes | |
| struct | QCoreApplicationData |
Typedefs | |
| typedef QList< QtStartUpFunction > | QStartUpFuncList |
| typedef QList< QtCleanUpFunction > | QVFuncList |
Variables | |
| static Q_CONSTINIT QBasicMutex | globalRoutinesMutex |
| static Q_CONSTINIT bool | preRoutinesCalled = false |
| static Q_CONSTINIT bool | quitLockEnabled = true |
| typedef QList<QtStartUpFunction> QStartUpFuncList |
Definition at line 241 of file qcoreapplication.cpp.
| typedef QList<QtCleanUpFunction> QVFuncList |
Definition at line 243 of file qcoreapplication.cpp.
Definition at line 1203 of file qcoreapplication.cpp.
References QCoreApplicationPrivate::checkReceiverThread(), false, QObject::isWidgetType(), QCoreApplicationPrivate::notify_helper(), Q_ASSERT, and qWarning.
Referenced by QQmlPropertyCapture::captureProperty(), QQmlPropertyCapture::captureProperty(), QQmlNotifierEndpoint::connect(), and QCoreApplication::notify().
Here is the call graph for this function:
Here is the caller graph for this function:| void Q_TRACE_INSTRUMENT | ( | qtcore | ) |
Definition at line 817 of file qcoreapplication.cpp.
References QCoreApplicationPrivate::appName(), QCoreApplicationPrivate::appVersion(), QCoreApplicationPrivate::createEventDispatcher(), QCoreApplicationPrivate::eventDispatcher, QCoreApplicationPrivate::eventDispatcherReady(), i, QtPrivate::initBindingStatusThreadId(), QCoreApplicationPrivate::initConsole(), QLoggingRegistry::initializeRules(), QCoreApplicationPrivate::initLocale(), QLoggingRegistry::instance(), QCoreApplicationPrivate::is_app_running, j, QBasicAtomicPointer< X >::loadRelaxed(), QObject::moveToThread(), QObject::parent(), pool, QCoreApplicationPrivate::processCommandLineArguments(), Q_ASSERT, Q_ASSERT_X, Q_TRACE_SCOPE, Q_UNLIKELY, qt_call_pre_routines(), qt_noop(), qt_startup_hook(), qtHookData, QObject::setParent(), QHooks::Startup, and QObjectPrivate::threadData.
Here is the call graph for this function:| Q_TRACE_METADATA | ( | qtcore | , |
| "ENUM { AUTO, RANGE User ... MaxUser } QEvent::Type;" | |||
| ) |
| Q_TRACE_POINT | ( | qtcore | , |
| QCoreApplication_notify_entry | , | ||
| QObject * | receiver, | ||
| QEvent * | event, | ||
| QEvent::Type | type | ||
| ) |
| Q_TRACE_POINT | ( | qtcore | , |
| QCoreApplication_notify_exit | , | ||
| bool | consumed, | ||
| bool | filtered | ||
| ) |
| Q_TRACE_POINT | ( | qtcore | , |
| QCoreApplication_postEvent_entry | , | ||
| QObject * | receiver, | ||
| QEvent * | event, | ||
| QEvent::Type | type | ||
| ) |
| Q_TRACE_POINT | ( | qtcore | , |
| QCoreApplication_postEvent_event_compressed | , | ||
| QObject * | receiver, | ||
| QEvent * | event | ||
| ) |
| Q_TRACE_POINT | ( | qtcore | , |
| QCoreApplication_postEvent_event_posted | , | ||
| QObject * | receiver, | ||
| QEvent * | event, | ||
| QEvent::Type | type | ||
| ) |
| Q_TRACE_POINT | ( | qtcore | , |
| QCoreApplication_postEvent_exit | |||
| ) |
| Q_TRACE_POINT | ( | qtcore | , |
| QCoreApplication_sendEvent | , | ||
| QObject * | receiver, | ||
| QEvent * | event, | ||
| QEvent::Type | type | ||
| ) |
| Q_TRACE_POINT | ( | qtcore | , |
| QCoreApplication_sendSpontaneousEvent | , | ||
| QObject * | receiver, | ||
| QEvent * | event, | ||
| QEvent::Type | type | ||
| ) |
| Q_TRACE_PREFIX | ( | qtcore | , |
| "#include <qcoreevent.h>" | |||
| ) |
|
related |
Definition at line 271 of file qcoreapplication.cpp.
Referenced by QFontLoaderFonts::QFontLoaderFonts(), QNetworkInformationPrivate::QNetworkInformationPrivate(), QQmlDebugServerImpl::QQmlDebugServerImpl(), QQuickRenderControlPrivate::QQuickRenderControlPrivate(), QWindowsClipboard::QWindowsClipboard(), QXcbEventQueue::QXcbEventQueue(), build_scale_table(), createTemporaryItemCopy(), QQuickShapeGenericRenderer::endSync(), QPlatformPrinterSupportPlugin::get(), QBrushPatternImageCache::init(), init_ptr(), QtQuickControls2NativeStylePlugin::initializeEngine(), install_instance_cleanuper(), QSGRenderLoop::instance(), q_QFontLoaderFontsAddReset(), qLibraryInit(), and QErrorMessage::qtHandler().
Here is the caller graph for this function:| void qAddPreRoutine | ( | QtStartUpFunction | p | ) |
Adds a global routine that will be called from the QCoreApplication constructor. The public API is Q_COREAPP_STARTUP_FUNCTION.
Definition at line 254 of file qcoreapplication.cpp.
References globalRoutinesMutex, QCoreApplication::instance(), list, QList< T >::prepend(), preRoutinesCalled, and Q_ASSERT.
Referenced by QFontLoaderFonts::QFontLoaderFonts().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 2421 of file qcoreapplication.cpp.
References QFile::decodeName(), QByteArray::fromRawData(), PATH_MAX, qstrlen(), and qt_readlink().
Here is the call graph for this function:| QString qAppName | ( | ) |
Definition at line 562 of file qcoreapplication.cpp.
Referenced by WindowCreationData::create(), qRequireVersion(), and sm_performSaveYourself().
Here is the caller graph for this function:| qsizetype qGlobalPostedEventsCount | ( | ) |
Definition at line 337 of file qcoreapplication.cpp.
References QThreadData::current(), QThreadData::postEventList, QList< T >::size(), and QPostEventList::startOffset.
Here is the call graph for this function:
|
related |
Definition at line 280 of file qcoreapplication.cpp.
Referenced by QFontLoaderFonts::~QFontLoaderFonts(), and QtQuickControls2NativeStylePlugin::~QtQuickControls2NativeStylePlugin().
Here is the caller graph for this function:| void Q_CORE_EXPORT qt_call_post_routines | ( | ) |
Definition at line 309 of file qcoreapplication.cpp.
References forever, globalRoutinesMutex, QList< T >::isEmpty(), list, and qSwap().
Referenced by QApplication::~QApplication(), QCoreApplication::~QCoreApplication(), QGuiApplication::~QGuiApplication(), QCommandLineParser::process(), QCommandLineParserPrivate::showHelp(), and QCommandLineParser::showVersion().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 289 of file qcoreapplication.cpp.
References globalRoutinesMutex, list, and preRoutinesCalled.
Referenced by Q_TRACE_INSTRUMENT().
Here is the caller graph for this function:| void Q_DECL_EXPORT_OVERRIDABLE qt_startup_hook | ( | ) |
Definition at line 237 of file qcoreapplication.cpp.
Referenced by Q_TRACE_INSTRUMENT().
Here is the caller graph for this function:| QString qtTrId | ( | const char * | id, |
| int | n | ||
| ) |
Definition at line 2345 of file qcoreapplication.cpp.
References QCoreApplication::translate().
Referenced by QQmlTranslation::QsTrIdData::translate(), and QV4::ExecutableCompilationUnit::translateFrom().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 2253 of file qcoreapplication.cpp.
References fmt.
Referenced by QCoreApplication::translate().
Here is the caller graph for this function:
|
static |
Definition at line 245 of file qcoreapplication.cpp.
Referenced by QCoreApplication::qAddPostRoutine(), qAddPreRoutine(), QCoreApplication::qRemovePostRoutine(), qt_call_post_routines(), and qt_call_pre_routines().
|
static |
Definition at line 246 of file qcoreapplication.cpp.
Referenced by QCoreApplication::~QCoreApplication(), qAddPreRoutine(), and qt_call_pre_routines().
|
static |
Definition at line 383 of file qcoreapplication.cpp.