![]() |
Qt 6.x
The Qt SDK
|
#include <QtCore/qglobal.h>
#include <QtCore/qstring.h>
#include <QtCore/qcoreevent.h>
#include <QtCore/qdeadlinetimer.h>
#include <QtCore/qeventloop.h>
#include <QtCore/qobject.h>
#include <QtCore/qnativeinterface.h>
#include <QtCore/qdebug.h>
#include <QtCore/qcoreapplication_platform.h>
Go to the source code of this file.
Classes | |
class | QCoreApplication |
\inmodule QtCore More... | |
Macros | |
#define | qApp QCoreApplication::instance() |
#define | Q_DECLARE_TR_FUNCTIONS(context) |
#define | Q_COREAPP_STARTUP_FUNCTION(AFUNC) |
Typedefs | |
typedef void(* | QtStartUpFunction) () |
typedef void(* | QtCleanUpFunction) () |
Functions | |
Q_CORE_EXPORT void | qAddPreRoutine (QtStartUpFunction) |
Q_CORE_EXPORT void | qAddPostRoutine (QtCleanUpFunction) |
Q_CORE_EXPORT void | qRemovePostRoutine (QtCleanUpFunction) |
Q_CORE_EXPORT QString | qAppName () |
#define Q_COREAPP_STARTUP_FUNCTION | ( | AFUNC | ) |
Definition at line 250 of file qcoreapplication.h.
#define Q_DECLARE_TR_FUNCTIONS | ( | context | ) |
Definition at line 236 of file qcoreapplication.h.
#define qApp QCoreApplication::instance() |
Definition at line 42 of file qcoreapplication.h.
typedef void(* QtCleanUpFunction) () |
Definition at line 243 of file qcoreapplication.h.
typedef void(* QtStartUpFunction) () |
Definition at line 242 of file qcoreapplication.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().
Q_CORE_EXPORT 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().
Q_CORE_EXPORT QString qAppName | ( | ) |
Definition at line 232 of file qcoreapplication.cpp.
Referenced by WindowCreationData::create(), qRequireVersion(), and sm_performSaveYourself().
|
related |
Definition at line 280 of file qcoreapplication.cpp.
Referenced by QFontLoaderFonts::~QFontLoaderFonts(), and QtQuickControls2NativeStylePlugin::~QtQuickControls2NativeStylePlugin().