![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <qcoreapplication_p.h>
Classes | |
| struct | QPostEventListLocker |
Public Types | |
| enum | Type : quint8 { Tty , Gui } |
| Public Types inherited from QObjectPrivate | |
| typedef void(*) | StaticMetaCallFunction(QObject *, QMetaObject::Call, int, void **) |
| using | ConnectionDataPointer = QExplicitlySharedDataPointer<ConnectionData> |
Static Public Member Functions | |
| static void | initLocale () |
| static bool | checkInstance (const char *method) |
| static bool | sendThroughObjectEventFilters (QObject *, QEvent *) |
| static bool | notify_helper (QObject *, QEvent *) |
| static void | setEventSpontaneous (QEvent *e, bool spontaneous) |
| static void | removePostedEvent (QEvent *) |
| Removes event from the queue of posted events, and emits a warning message if appropriate. | |
| static QThread * | mainThread () |
| static void | sendPostedEvents (QObject *receiver, int event_type, QThreadData *datadata) |
| static void | checkReceiverThread (QObject *receiver, const char *caller) |
| static QPostEventListLocker | lockThreadPostEventList (QObject *objectobject) |
| static void | destroyEventDispatcher () |
| static bool | isTranslatorInstalled (QTranslator *translator) |
| static bool | testAttribute (uint flag) |
| Static Public Member Functions inherited from QObjectPrivate | |
| static bool | removeConnection (Connection *cc) |
| static QObjectPrivate * | get (QObject *o) |
| static const QObjectPrivate * | get (const QObject *o) |
| static void | deleteInOwnThread (QObject *objectobject) |
| template<typename Func1, typename Func2> | |
| static QMetaObject::Connection | connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot, Qt::ConnectionType typetype=Qt::AutoConnection) |
| template<typename Func1, typename Func2> | |
| static bool | disconnect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot) |
| static QMetaObject::Connection | connectImpl (const QObject *sender, int signal_index, const QObject *receiver, void **slot, QtPrivate::QSlotObjectBase *slotObj, int typetype, const int *typestypes, const QMetaObject *senderMetaObject) |
| static QMetaObject::Connection | connect (const QObject *sender, int signal_index, QtPrivate::QSlotObjectBase *slotObj, Qt::ConnectionType typetype) |
| static QMetaObject::Connection | connect (const QObject *sender, int signal_index, const QObject *receiver, QtPrivate::QSlotObjectBase *slotObj, Qt::ConnectionType typetype) |
| static bool | disconnect (const QObject *sender, int signal_index, void **slot) |
| static bool | disconnect (const QObject *sender, int signal_index, const QObject *receiver, void **slot) |
Static Public Attributes | |
| static QBasicAtomicPointer< QThread > | theMainThread = Q_BASIC_ATOMIC_INITIALIZER(nullptr) |
| static QBasicAtomicPointer< void > | theMainThreadId = Q_BASIC_ATOMIC_INITIALIZER(nullptr) |
| static QAbstractEventDispatcher * | eventDispatcher = nullptr |
| static bool | is_app_running = false |
| static bool | is_app_closing = false |
| static bool | setuidAllowed = false |
| static uint | attribs |
Definition at line 45 of file qcoreapplication_p.h.
| Enumerator | |
|---|---|
| Tty | |
| Gui | |
Definition at line 53 of file qcoreapplication_p.h.
| QCoreApplicationPrivate::QCoreApplicationPrivate | ( | int & | aargc, |
| char ** | aargv ) |
Definition at line 475 of file qcoreapplication.cpp.
| QCoreApplicationPrivate::~QCoreApplicationPrivate | ( | ) |
Definition at line 505 of file qcoreapplication.cpp.
| QString QCoreApplicationPrivate::appName | ( | ) | const |
Definition at line 191 of file qcoreapplication.cpp.
| QString QCoreApplicationPrivate::appVersion | ( | ) | const |
Definition at line 218 of file qcoreapplication.cpp.
|
virtual |
Reimplemented in QGuiApplicationPrivate.
Definition at line 2077 of file qcoreapplication.cpp.
|
static |
Definition at line 248 of file qcoreapplication.cpp.
|
inlinestatic |
Definition at line 115 of file qcoreapplication_p.h.
| void QCoreApplicationPrivate::cleanupThreadData | ( | ) |
Definition at line 517 of file qcoreapplication.cpp.
|
virtual |
Returns true if event was compressed away (possibly deleted) and should not be added to the list.
Reimplemented in QApplicationPrivate.
Definition at line 1708 of file qcoreapplication.cpp.
|
virtual |
Reimplemented in QApplicationPrivate, and QGuiApplicationPrivate.
Definition at line 533 of file qcoreapplication.cpp.
| void QCoreApplicationPrivate::deref | ( | ) |
Definition at line 2069 of file qcoreapplication.cpp.
|
static |
Definition at line 3310 of file qcoreapplication.cpp.
|
virtual |
Reimplemented in QGuiApplicationPrivate.
Definition at line 542 of file qcoreapplication.cpp.
| void QCoreApplicationPrivate::execCleanup | ( | ) |
Definition at line 1475 of file qcoreapplication.cpp.
|
virtual |
Handles a QEvent::Quit sent to the application.
Subclasses can override this to perform additional work, such as closing windows, before calling the base implementation, which exits the event loop.
Returns true if the quit was accepted, or false to reject it, in which case the event will be ignored.
Reimplemented in QApplicationPrivate, and QGuiApplicationPrivate.
Definition at line 2179 of file qcoreapplication.cpp.
| void QCoreApplicationPrivate::init | ( | ) |
|
static |
Definition at line 563 of file qcoreapplication.cpp.
|
static |
Definition at line 2393 of file qcoreapplication.cpp.
|
static |
Definition at line 1581 of file qcoreapplication.cpp.
|
static |
Definition at line 548 of file qcoreapplication.cpp.
Helper function called by QCoreApplicationPrivate::notify() and qapplication.cpp
Definition at line 1266 of file qcoreapplication.cpp.
| void QCoreApplicationPrivate::processCommandLineArguments | ( | ) |
Definition at line 265 of file qcoreapplication.cpp.
|
virtual |
Reimplemented in QGuiApplicationPrivate.
Definition at line 2155 of file qcoreapplication.cpp.
| void QCoreApplicationPrivate::quitAutomatically | ( | ) |
Definition at line 2094 of file qcoreapplication.cpp.
| void QCoreApplicationPrivate::ref | ( | ) |
Definition at line 2064 of file qcoreapplication.cpp.
Removes event from the queue of posted events, and emits a warning message if appropriate.
\threadsafe
Definition at line 2011 of file qcoreapplication.cpp.
|
static |
Definition at line 1778 of file qcoreapplication.cpp.
| bool QCoreApplicationPrivate::sendThroughApplicationEventFilters | ( | QObject * | receiver, |
| QEvent * | event ) |
Definition at line 1221 of file qcoreapplication.cpp.
|
static |
Definition at line 1243 of file qcoreapplication.cpp.
Definition at line 91 of file qcoreapplication_p.h.
|
inlinestatic |
Definition at line 177 of file qcoreapplication_p.h.
| bool QCoreApplicationPrivate::aboutToQuitEmitted = false |
Definition at line 160 of file qcoreapplication_p.h.
Definition at line 154 of file qcoreapplication_p.h.
| int& QCoreApplicationPrivate::argc |
Definition at line 143 of file qcoreapplication_p.h.
| char** QCoreApplicationPrivate::argv |
Definition at line 144 of file qcoreapplication_p.h.
|
static |
Definition at line 176 of file qcoreapplication_p.h.
| QString QCoreApplicationPrivate::cachedApplicationFilePath |
Definition at line 180 of file qcoreapplication_p.h.
|
static |
Definition at line 165 of file qcoreapplication_p.h.
| bool QCoreApplicationPrivate::handlingQuitEvent = false |
Definition at line 162 of file qcoreapplication_p.h.
| bool QCoreApplicationPrivate::in_exec = false |
Definition at line 159 of file qcoreapplication_p.h.
|
static |
Definition at line 167 of file qcoreapplication_p.h.
|
static |
Definition at line 166 of file qcoreapplication_p.h.
| QString QCoreApplicationPrivate::qmljs_debug_arguments |
Definition at line 181 of file qcoreapplication_p.h.
| QAtomicInt QCoreApplicationPrivate::quitLockRef |
Definition at line 101 of file qcoreapplication_p.h.
|
static |
Definition at line 175 of file qcoreapplication_p.h.
|
static |
Definition at line 109 of file qcoreapplication_p.h.
|
static |
Definition at line 110 of file qcoreapplication_p.h.
| bool QCoreApplicationPrivate::threadData_clean = false |
Definition at line 161 of file qcoreapplication_p.h.
| QReadWriteLock QCoreApplicationPrivate::translateMutex |
Definition at line 171 of file qcoreapplication_p.h.
| QTranslatorList QCoreApplicationPrivate::translators |
Definition at line 170 of file qcoreapplication_p.h.