Class QApplication

Direct Known Subclasses:
QRootApplication

class QApplication
derived from QObject


Fields inherited from class Qt
color0, color1, black, white, darkGray, gray, lightGray, red, green, blue, cyan, magenta, yellow, darkRed, darkGreen, darkBlue, darkCyan, darkMagenta, darkYellow, arrowCursor, upArrowCursor, crossCursor, waitCursor, ibeamCursor, sizeVerCursor, sizeHorCursor, sizeBDiagCursor, sizeFDiagCursor, sizeAllCursor, blankCursor, splitVCursor, splitHCursor, pointingHandCursor, forbiddenCursor, whatsThisCursor

Constructor Summary
QApplication(int & argc, char * * argv)
           
QApplication(int & argc, char * * argv, bool GUIenabled)
           
QApplication(int & argc, char * * argv, Type )
           

Destructor Summary
 virtual ~QApplication()
           

Method Summary
 static QWidget *activeModalWidget()
           
 static QWidget *activePopupWidget()
           
 const QWidget *activeWindow()
           
 static voidaddLibraryPath(const QString & )
           
 static QWidgetList *allWidgets()
           
 const QUuidapplicationId()
           
 const intargc()
           
 const char * *argv()
           
 static voidbeep()
           
 virtual const const char *className()
           
 static QClipboard *clipboard()
           
 voidcloseAllWindows()
           
 static boolclosingDown()
           
 static ColorModecolorMode()
           
 static intcolorSpec()
           
 virtual voidcommitData(QSessionManager & sm)
           
 static intcursorFlashTime()
           
 const QTextCodec *defaultCodec()
           
 static QDesktopWidget *desktop()
           
 static booldesktopSettingsAware()
           
 static intdoubleClickInterval()
           
 intenter_loop()
           
 intexec()
           
 static voidexit(int retcode)
           
 voidexit_loop()
           
 static voidflush()
           
 static voidflushX()
           
 const QWidget *focusWidget()
           
 static QFontfont(const QWidget * )
           
 static QFontMetricsfontMetrics()
           
 static QSizeglobalStrut()
           
 static boolhasGlobalMouseTracking()
           
 boolhasPendingEvents()
           
 static inthorizontalAlignment(int align)
           
 voidinstallTranslator(QTranslator * )
           
 static boolisEffectEnabled(Qt::UIEffect )
           
 const boolisSessionRestored()
           
 static QStringListlibraryPaths()
           
 const intloopLevel()
           
 const QWidget *mainWidget()
           
 virtual const QMetaObject *metaObject()
           
 virtual boolnotify(QObject * , QEvent * )
           
 static QCursor *overrideCursor()
           
 static QPalettepalette(const QWidget * )
           
 virtual voidpolish(QWidget * )
           
 static voidpostEvent(QObject * receiver, QEvent * event)
           
 voidprocessEvents()
           
 voidprocessEvents(int maxtime)
           
 voidprocessOneEvent()
           
 QObject *qObject()
           
 virtual void *qt_cast(const char * )
           
 virtual boolqt_emit(int , QUObject * )
           
 virtual boolqt_invoke(int , QUObject * )
           
 virtual boolqt_property(int , int , QVariant * )
           
 voidquit()
           
 const boolremoteControlEnabled()
           
 static voidremoveLibraryPath(const QString & )
           
 static voidremovePostedEvents(QObject * receiver)
           
 voidremoveTranslator(QTranslator * )
           
 static voidrestoreOverrideCursor()
           
 static boolreverseLayout()
           
 virtual voidsaveState(QSessionManager & sm)
           
 static boolsendEvent(QObject * receiver, QEvent * event)
           
 static voidsendPostedEvents(QObject * receiver, int event_type)
           
 static voidsendPostedEvents()
           
 const QStringsessionId()
           
 static voidsetColorMode(QApplication::ColorMode )
           
 static voidsetColorSpec(int )
           
 static voidsetCursorFlashTime(int )
           
 voidsetDefaultCodec(QTextCodec * )
           
 static voidsetDesktopSettingsAware(bool )
           
 static voidsetDoubleClickInterval(int )
           
 static voidsetEffectEnabled(Qt::UIEffect , bool enable)
           
 voidsetEnableRemoteControl(bool enable, const QUuid appId)
           
 static voidsetFont(const QFont & , bool informWidgets, const char * className)
           
 static voidsetGlobalMouseTracking(bool enable)
           
 static voidsetGlobalStrut(const QSize & )
           
 static voidsetLibraryPaths(const QStringList & )
           
 virtual voidsetMainWidget(QWidget * )
           
 static voidsetOverrideCursor(const QCursor & , bool replace)
           
 static voidsetPalette(const QPalette & , bool informWidgets, const char * className)
           
 static voidsetReverseLayout(bool b)
           
 static voidsetStartDragDistance(int l)
           
 static voidsetStartDragTime(int ms)
           
 static voidsetStyle(QStyle * )
           
 static QStyle *setStyle(const QString & )
           
 static voidsetWheelScrollLines(int )
           
 static voidsetWinStyleHighlightColor(const QColor & c)
           
 static intstartDragDistance()
           
 static intstartDragTime()
           
 static boolstartingUp()
           
 static QMetaObject *staticMetaObject()
           
 static QStyle &style()
           
 static voidsyncX()
           
 static QWidgetList *topLevelWidgets()
           
 static QStringtr(const char * , const char * )
           
 const QStringtranslate(const char * context, const char * key, const char * comment, Encoding encoding)
           
 static QStringtrUtf8(const char * , const char * )
           
 const Typetype()
           
 voidwakeUpGuiThread()
           
 static intwheelScrollLines()
           
 static QWidget *widgetAt(int x, int y, bool child)
           
 static QWidget *widgetAt(const QPoint & , bool child)
           
 virtual boolwinEventFilter(MSG * )
           
 voidwinFocus(QWidget * , bool )
           
 static voidwinMouseButtonUp()
           
 static const QColor &winStyleHighlightColor()
           
 static WindowsVersionwinVersion()
           

Methods inherited from class QObject
event, eventFilter, isA, inherits, name, name, setName, isWidgetType, highPriority, signalsBlocked, blockSignals, startTimer, killTimer, killTimers, child, children, objectTrees, queryList, insertChild, removeChild, installEventFilter, removeEventFilter, connect, connect, disconnect, disconnect, disconnect, connectInternal, dumpObjectTree, dumpObjectInfo, setProperty, property, parent, deleteLater

Constructor Detail

QApplication

public QApplication(int & argc, char * * argv)

QApplication

public QApplication(int & argc, char * * argv, bool GUIenabled)

QApplication

public QApplication(int & argc, char * * argv, Type )
Method Detail

~QApplication

public virtual ~QApplication()
Method Detail

activeModalWidget

public static QWidget * activeModalWidget()

activePopupWidget

public static QWidget * activePopupWidget()

activeWindow

public const QWidget * activeWindow()

addLibraryPath

public static void addLibraryPath(const QString & )

allWidgets

public static QWidgetList * allWidgets()

applicationId

public const QUuid applicationId()

argc

public const int argc()

argv

public const char * * argv()

beep

public static void beep()

className

public virtual const const char * className()

clipboard

public static QClipboard * clipboard()

closeAllWindows

public void closeAllWindows()

closingDown

public static bool closingDown()

colorMode

public static ColorMode colorMode()

colorSpec

public static int colorSpec()

commitData

public virtual void commitData(QSessionManager & sm)

cursorFlashTime

public static int cursorFlashTime()

defaultCodec

public const QTextCodec * defaultCodec()

desktop

public static QDesktopWidget * desktop()

desktopSettingsAware

public static bool desktopSettingsAware()

doubleClickInterval

public static int doubleClickInterval()

enter_loop

public int enter_loop()

exec

public int exec()

exit

public static void exit(int retcode)

exit_loop

public void exit_loop()

flush

public static void flush()

flushX

public static void flushX()

focusWidget

public const QWidget * focusWidget()

font

public static QFont font(const QWidget * )

fontMetrics

public static QFontMetrics fontMetrics()

globalStrut

public static QSize globalStrut()

hasGlobalMouseTracking

public static bool hasGlobalMouseTracking()

hasPendingEvents

public bool hasPendingEvents()

horizontalAlignment

public static int horizontalAlignment(int align)

installTranslator

public void installTranslator(QTranslator * )

isEffectEnabled

public static bool isEffectEnabled(Qt::UIEffect )

isSessionRestored

public const bool isSessionRestored()

libraryPaths

public static QStringList libraryPaths()

loopLevel

public const int loopLevel()

mainWidget

public const QWidget * mainWidget()

metaObject

public virtual const QMetaObject * metaObject()

notify

public virtual bool notify(QObject * , QEvent * )

overrideCursor

public static QCursor * overrideCursor()

palette

public static QPalette palette(const QWidget * )

polish

public virtual void polish(QWidget * )

postEvent

public static void postEvent(QObject * receiver, QEvent * event)

processEvents

public void processEvents()

processEvents

public void processEvents(int maxtime)

processOneEvent

public void processOneEvent()

qObject

public QObject * qObject()

qt_cast

public virtual void * qt_cast(const char * )

qt_emit

public virtual bool qt_emit(int , QUObject * )

qt_invoke

public virtual bool qt_invoke(int , QUObject * )

qt_property

public virtual bool qt_property(int , int , QVariant * )

quit

public void quit()

remoteControlEnabled

public const bool remoteControlEnabled()

removeLibraryPath

public static void removeLibraryPath(const QString & )

removePostedEvents

public static void removePostedEvents(QObject * receiver)

removeTranslator

public void removeTranslator(QTranslator * )

restoreOverrideCursor

public static void restoreOverrideCursor()

reverseLayout

public static bool reverseLayout()

saveState

public virtual void saveState(QSessionManager & sm)

sendEvent

public static bool sendEvent(QObject * receiver, QEvent * event)

sendPostedEvents

public static void sendPostedEvents(QObject * receiver, int event_type)

sendPostedEvents

public static void sendPostedEvents()

sessionId

public const QString sessionId()

setColorMode

public static void setColorMode(QApplication::ColorMode )

setColorSpec

public static void setColorSpec(int )

setCursorFlashTime

public static void setCursorFlashTime(int )

setDefaultCodec

public void setDefaultCodec(QTextCodec * )

setDesktopSettingsAware

public static void setDesktopSettingsAware(bool )

setDoubleClickInterval

public static void setDoubleClickInterval(int )

setEffectEnabled

public static void setEffectEnabled(Qt::UIEffect , bool enable)

setEnableRemoteControl

public void setEnableRemoteControl(bool enable, const QUuid appId)

setFont

public static void setFont(const QFont & , bool informWidgets, const char * className)

setGlobalMouseTracking

public static void setGlobalMouseTracking(bool enable)

setGlobalStrut

public static void setGlobalStrut(const QSize & )

setLibraryPaths

public static void setLibraryPaths(const QStringList & )

setMainWidget

public virtual void setMainWidget(QWidget * )

setOverrideCursor

public static void setOverrideCursor(const QCursor & , bool replace)

setPalette

public static void setPalette(const QPalette & , bool informWidgets, const char * className)

setReverseLayout

public static void setReverseLayout(bool b)

setStartDragDistance

public static void setStartDragDistance(int l)

setStartDragTime

public static void setStartDragTime(int ms)

setStyle

public static void setStyle(QStyle * )

setStyle

public static QStyle * setStyle(const QString & )

setWheelScrollLines

public static void setWheelScrollLines(int )

setWinStyleHighlightColor

public static void setWinStyleHighlightColor(const QColor & c)

startDragDistance

public static int startDragDistance()

startDragTime

public static int startDragTime()

startingUp

public static bool startingUp()

staticMetaObject

public static QMetaObject * staticMetaObject()

style

public static QStyle & style()

syncX

public static void syncX()

topLevelWidgets

public static QWidgetList * topLevelWidgets()

tr

public static QString tr(const char * , const char * )

translate

public const QString translate(const char * context, const char * key, const char * comment, Encoding encoding)

trUtf8

public static QString trUtf8(const char * , const char * )

type

public const Type type()

wakeUpGuiThread

public void wakeUpGuiThread()

wheelScrollLines

public static int wheelScrollLines()

widgetAt

public static QWidget * widgetAt(int x, int y, bool child)

widgetAt

public static QWidget * widgetAt(const QPoint & , bool child)

winEventFilter

public virtual bool winEventFilter(MSG * )

winFocus

public void winFocus(QWidget * , bool )

winMouseButtonUp

public static void winMouseButtonUp()

winStyleHighlightColor

public static const QColor & winStyleHighlightColor()

winVersion

public static WindowsVersion winVersion()

Association Links

to Class QPalette

to Class QFont

to Class QWidget

to Class QWidget

to Class QWidget

to Class QSize