QCoreApplication

#include <QtCore/QCoreApplication>

More information will be added here shortly. For now, you'll find more extensive information about this class in the Qt reference for QCoreApplication


Overview

Inheritance

Public Types Index

enum @4

ApplicationFlags QT_VERSION | 0x01000000

enum Encoding

CodecForTr, UnicodeUTF8, DefaultCodec CodecForTr

bool(*EventFilter

Public Functions Index

QCoreApplication (int &argc, char **argv, int=ApplicationFlags)
~QCoreApplication ()
boolfilterEvent (void *message, long *result)
virtual boolnotify (QObject *, QEvent *)
EventFiltersetEventFilter (EventFilter filter)

Static Public Functions Index

voidaddLibraryPath (const QString &)
QStringapplicationDirPath ()
QStringapplicationFilePath ()
QStringapplicationName ()
qint64applicationPid ()
QStringapplicationVersion ()
QStringListarguments ()
boolclosingDown ()
intexec ()
voidexit (int retcode=0)
voidflush ()
boolhasPendingEvents ()
voidinstallTranslator (QTranslator *messageFile)
QCoreApplication *instance ()
QStringListlibraryPaths ()
QStringorganizationDomain ()
QStringorganizationName ()
voidpostEvent (QObject *receiver, QEvent *event)
voidpostEvent (QObject *receiver, QEvent *event, int priority)
voidprocessEvents (QEventLoop::ProcessEventsFlags flags=QEventLoop::AllEvents)
voidprocessEvents (QEventLoop::ProcessEventsFlags flags, int maxtime)
voidremoveLibraryPath (const QString &)
voidremovePostedEvents (QObject *receiver)
voidremovePostedEvents (QObject *receiver, int eventType)
voidremoveTranslator (QTranslator *messageFile)
boolsendEvent (QObject *receiver, QEvent *event)
voidsendPostedEvents (QObject *receiver, int event_type)
voidsendPostedEvents ()
voidsetApplicationName (const QString &application)
voidsetApplicationVersion (const QString &version)
voidsetAttribute (Qt::ApplicationAttribute attribute, bool on=true)
voidsetLibraryPaths (const QStringList &)
voidsetOrganizationDomain (const QString &orgDomain)
voidsetOrganizationName (const QString &orgName)
boolstartingUp ()
booltestAttribute (Qt::ApplicationAttribute attribute)
QStringtranslate (const char *context, const char *key, const char *disambiguation=0, Encoding encoding=CodecForTr)
QStringtranslate (const char *context, const char *key, const char *disambiguation, Encoding encoding, int n)

Protected Functions Index

QCoreApplication (QCoreApplicationPrivate &p)
virtual boolcompressEvent (QEvent *, QObject *receiver, QPostEventList *)
virtual boolevent (QEvent *)

Public Slots Index

voidquit ()

Signals Index

voidaboutToQuit ()
voidunixSignal (int)

Public Types

@4

ApplicationFlags QT_VERSION | 0x01000000

Encoding

CodecForTr
UnicodeUTF8
DefaultCodec CodecForTr

typedef bool(* EventFilter

Properties

QString applicationName

QString applicationVersion

QString organizationDomain

QString organizationName

Public Functions

QCoreApplication (
  • int &argc,
  • char **argv,
  • int )

~QCoreApplication ()

Destructor.

bool filterEvent (
  • void *message,
  • long *result )

virtual bool notify (

EventFilter setEventFilter (
  • EventFilterfilter)

Static Public Functions

void addLibraryPath (

QString applicationDirPath ()

QString applicationFilePath ()

QString applicationName ()

qint64 applicationPid ()

QString applicationVersion ()

QStringList arguments ()

bool closingDown ()

int exec ()

void exit (
  • intretcode)

void flush ()

bool hasPendingEvents ()

void installTranslator (

QCoreApplication * instance ()

QStringList libraryPaths ()

QString organizationDomain ()

QString organizationName ()

void postEvent (

void postEvent (

void processEvents (
  • QEventLoop::ProcessEventsFlagsflags)

void processEvents (
  • QEventLoop::ProcessEventsFlagsflags,
  • intmaxtime )

void removeLibraryPath (

void removePostedEvents (

void removePostedEvents (

void removeTranslator (

bool sendEvent (

void sendPostedEvents (

void sendPostedEvents ()

void setApplicationName (

void setApplicationVersion (

void setAttribute (
  • Qt::ApplicationAttributeattribute,
  • boolon )

void setLibraryPaths (

void setOrganizationDomain (

void setOrganizationName (

bool startingUp ()

bool testAttribute (
  • Qt::ApplicationAttributeattribute)

QString translate (
  • const char *context,
  • const char *key,
  • const char *disambiguation,
  • Encodingencoding )

QString translate (
  • const char *context,
  • const char *key,
  • const char *disambiguation,
  • Encodingencoding,
  • intn )

Protected Functions

QCoreApplication (
  • QCoreApplicationPrivate &p)

virtual bool compressEvent (

virtual bool event (

Public Slots

void quit ()

Signals

void aboutToQuit ()

void unixSignal (
  • int)

Last modified: 2015-07-24



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus