QCoreApplication Class Reference
#include <qcoreapplication.h>
Definition at line 71 of file qcoreapplication.h.
|
| QCoreApplication (int &argc, char **argv, int=ApplicationFlags) |
|
| ~QCoreApplication () |
|
virtual bool | notify (QObject *, QEvent *) |
|
EventFilter | setEventFilter (EventFilter filter) |
|
bool | filterEvent (void *message, long *result) |
|
Q_INVOKABLE | QObject (QObject *parent=0) |
|
virtual | ~QObject () |
|
virtual bool | eventFilter (QObject *, QEvent *) |
|
QString | objectName () const |
|
void | setObjectName (const QString &name) |
|
bool | isWidgetType () const |
|
bool | signalsBlocked () const |
|
bool | blockSignals (bool b) |
|
QThread * | thread () const |
|
void | moveToThread (QThread *thread) |
|
int | startTimer (int interval) |
|
void | killTimer (int id) |
|
template<typename T > |
T | findChild (const QString &aName=QString()) const |
|
template<typename T > |
QList< T > | findChildren (const QString &aName=QString()) const |
|
template<typename T > |
QList< T > | findChildren (const QRegExp &re) const |
|
const QObjectList & | children () const |
|
void | setParent (QObject *) |
|
void | installEventFilter (QObject *) |
|
void | removeEventFilter (QObject *) |
|
bool | connect (const QObject *sender, const char *signal, const char *member, Qt::ConnectionType type=Qt::AutoConnection) const |
|
bool | disconnect (const char *signal=0, const QObject *receiver=0, const char *member=0) |
|
bool | disconnect (const QObject *receiver, const char *member=0) |
|
void | dumpObjectTree () |
|
void | dumpObjectInfo () |
|
bool | setProperty (const char *name, const QVariant &value) |
|
QVariant | property (const char *name) const |
|
QList< QByteArray > | dynamicPropertyNames () const |
|
void | setUserData (uint id, QObjectUserData *data) |
|
QObjectUserData * | userData (uint id) const |
|
QObject * | parent () const |
|
bool | inherits (const char *classname) const |
|
|
static QStringList | arguments () |
|
static void | setAttribute (Qt::ApplicationAttribute attribute, bool on=true) |
|
static bool | testAttribute (Qt::ApplicationAttribute attribute) |
|
static void | setOrganizationDomain (const QString &orgDomain) |
|
static QString | organizationDomain () |
|
static void | setOrganizationName (const QString &orgName) |
|
static QString | organizationName () |
|
static void | setApplicationName (const QString &application) |
|
static QString | applicationName () |
|
static void | setApplicationVersion (const QString &version) |
|
static QString | applicationVersion () |
|
static QCoreApplication * | instance () |
|
static int | exec () |
|
static void | processEvents (QEventLoop::ProcessEventsFlags flags=QEventLoop::AllEvents) |
|
static void | processEvents (QEventLoop::ProcessEventsFlags flags, int maxtime) |
|
static void | exit (int retcode=0) |
|
static bool | sendEvent (QObject *receiver, QEvent *event) |
|
static void | postEvent (QObject *receiver, QEvent *event) |
|
static void | postEvent (QObject *receiver, QEvent *event, int priority) |
|
static void | sendPostedEvents (QObject *receiver, int event_type) |
|
static void | sendPostedEvents () |
|
static void | removePostedEvents (QObject *receiver) |
|
static void | removePostedEvents (QObject *receiver, int eventType) |
|
static bool | hasPendingEvents () |
|
static bool | startingUp () |
|
static bool | closingDown () |
|
static QString | applicationDirPath () |
|
static QString | applicationFilePath () |
|
static qint64 | applicationPid () |
|
static void | setLibraryPaths (const QStringList &) |
|
static QStringList | libraryPaths () |
|
static void | addLibraryPath (const QString &) |
|
static void | removeLibraryPath (const QString &) |
|
static void | installTranslator (QTranslator *messageFile) |
|
static void | removeTranslator (QTranslator *messageFile) |
|
static QString | translate (const char *context, const char *key, const char *disambiguation=0, Encoding encoding=CodecForTr) |
|
static QString | translate (const char *context, const char *key, const char *disambiguation, Encoding encoding, int n) |
|
static void | flush () |
|
static void | watchUnixSignal (int signal, bool watch) |
|
static bool | connect (const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection) |
|
static bool | connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type=Qt::AutoConnection) |
|
static bool | disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *member) |
|
static bool | disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &member) |
|
static uint | registerUserData () |
|
typedef bool(* EventFilter) (void *message, long *result) |
Enumerator |
---|
ApplicationFlags |
|
Definition at line 81 of file qcoreapplication.h.
82 #if !defined(QT3_SUPPORT)
static void setOrganizationDomain |
( |
const QString & |
orgDomain | ) |
|
|
static |
static QString organizationDomain |
( |
| ) |
|
|
static |
static void setOrganizationName |
( |
const QString & |
orgName | ) |
|
|
static |
static QString organizationName |
( |
| ) |
|
|
static |
static void setApplicationName |
( |
const QString & |
application | ) |
|
|
static |
static void setApplicationVersion |
( |
const QString & |
version | ) |
|
|
static |
static QString applicationVersion |
( |
| ) |
|
|
static |
static void processEvents |
( |
QEventLoop::ProcessEventsFlags |
flags, |
|
|
int |
maxtime |
|
) |
| |
|
static |
static void exit |
( |
int |
retcode = 0 | ) |
|
|
static |
Definition at line 230 of file qcoreapplication.h.
231 {
if (event)
event->spont =
false;
return self ?
self->notifyInternal(receiver, event) :
false; }
void sendPostedEvents |
( |
| ) |
|
|
inlinestatic |
static bool hasPendingEvents |
( |
| ) |
|
|
static |
static bool startingUp |
( |
| ) |
|
|
static |
static bool closingDown |
( |
| ) |
|
|
static |
static QString applicationDirPath |
( |
| ) |
|
|
static |
static QString applicationFilePath |
( |
| ) |
|
|
static |
static qint64 applicationPid |
( |
| ) |
|
|
static |
static QString translate |
( |
const char * |
context, |
|
|
const char * |
key, |
|
|
const char * |
disambiguation = 0 , |
|
|
Encoding |
encoding = CodecForTr |
|
) |
| |
|
static |
static QString translate |
( |
const char * |
context, |
|
|
const char * |
key, |
|
|
const char * |
disambiguation, |
|
|
Encoding |
encoding, |
|
|
int |
n |
|
) |
| |
|
static |
static void watchUnixSignal |
( |
int |
signal, |
|
|
bool |
watch |
|
) |
| |
|
static |
bool filterEvent |
( |
void * |
message, |
|
|
long * |
result |
|
) |
| |
virtual bool compressEvent |
( |
QEvent * |
, |
|
|
QObject * |
receiver, |
|
|
QPostEventList * |
|
|
) |
| |
|
protectedvirtual |
friend class QEventDispatcherUNIXPrivate |
|
friend |
friend class QApplicationPrivate |
|
friend |
friend class Q3AccelManager |
|
friend |
friend class QShortcutMap |
|
friend |
friend class QWidgetPrivate |
|
friend |
friend class QClassFactory |
|
friend |
The documentation for this class was generated from the following file: