QApplication类参考
QApplication类管理图形用户界面应用程序的控制流和主要设置。详情请见……
#include <qapplication.h>
继承了QObject。
被QXtApplication继承。
所有成员函数的列表。
公有成员QApplication( int&argc, char**argv )
QApplication( int&argc, char**argv, boolGUIenabled )
enumType{ Tty, GuiClient, GuiServer }
QApplication( int&argc, char**argv, Typetype )
QApplication( Display*dpy, HANDLEvisual = 0, HANDLEcolormap = 0 )
QApplication( Display*dpy, intargc, char**argv, HANDLEvisual = 0, HANDLEcolormap = 0 )
virtual~QApplication()
intargc() const
char **argv() const
Typetype() const
enumColorSpec{ NormalColor = 0, CustomColor = 1, ManyColor = 2 }
QWidget *mainWidget() const
virtual voidsetMainWidget( QWidget*mainWidget )
virtual voidpolish( QWidget*w )
QWidget *focusWidget() const
QWidget *activeWindow() const
intexec()
voidprocessEvents()
voidprocessEvents( intmaxtime )
voidprocessOneEvent()
boolhasPendingEvents()
intenter_loop()
voidexit_loop()
intloopLevel() const
virtual boolnotify( QObject*receiver, QEvent*e )
voidsetDefaultCodec( QTextCodec*codec )
QTextCodec *defaultCodec() const
voidinstallTranslator( QTranslator*mf )
voidremoveTranslator( QTranslator*mf )
enumEncoding{ DefaultCodec, UnicodeUTF8 }
QStringtranslate( constchar*context, constchar*sourceText, constchar*comment = 0, Encodingencoding = DefaultCodec ) const
virtual boolmacEventFilter( EventRef )
virtual boolwinEventFilter( MSG * )
virtual boolx11EventFilter( XEvent * )
intx11ProcessEvent( XEvent*event )
virtual boolqwsEventFilter( QWSEvent * )
voidqwsSetCustomColors( QRgb*colorTable, intstart, intnumColors )
voidwinFocus( QWidget*widget, boolgotFocus )
boolisSessionRestored() const
QStringsessionId() const
virtual voidcommitData( QSessionManager&sm )
virtual voidsaveState( QSessionManager&sm )
voidwakeUpGuiThread()
voidlock()
voidunlock( boolwakeUpGui = TRUE )
boollocked()
booltryLock()
公有槽voidquit()
voidcloseAllWindows()
信号voidlastWindowClosed()
voidaboutToQuit()
voidguiThreadAwake()
静态公有成员QStyle &style()
voidsetStyle( QStyle*style )
QStyle *setStyle( constQString&style )
intcolorSpec()
voidsetColorSpec( intspec )
QCursor *overrideCursor()
voidsetOverrideCursor( constQCursor&cursor, boolreplace = FALSE )
voidrestoreOverrideCursor()
boolhasGlobalMouseTracking()
voidsetGlobalMouseTracking( boolenable )
QPalettepalette( constQWidget*w = 0 )
voidsetPalette( constQPalette&palette, boolinformWidgets = FALSE, constchar*className = 0 )
QFontfont( constQWidget*w = 0 )
voidsetFont( constQFont&font, boolinformWidgets = FALSE, constchar*className = 0 )
QFontMetricsfontMetrics()
QWidgetList *allWidgets()
QWidgetList *topLevelWidgets()
QDesktopWidget *desktop()
QWidget *activePopupWidget()
QWidget *activeModalWidget()
QClipboard *clipboard()
QWidget *widgetAt( intx, inty, boolchild = FALSE )
QWidget *widgetAt( constQPoint&pos, boolchild = FALSE )
voidexit( intretcode = 0 )
boolsendEvent( QObject*receiver, QEvent*event )
voidpostEvent( QObject*receiver, QEvent*event )
voidsendPostedEvents( QObject*receiver, intevent_type )
voidsendPostedEvents()
voidremovePostedEvents( QObject*receiver )
boolstartingUp()
boolclosingDown()
voidflushX()
voidflush()
voidsyncX()
voidbeep()
void setWinStyleHighlightColor ( constQColor&c ) (obsolete)
const QColor & winStyleHighlightColor () (obsolete)
voidsetDesktopSettingsAware( boolon )
booldesktopSettingsAware()
voidsetCursorFlashTime( intmsecs )
intcursorFlashTime()
voidsetDoubleClickInterval( intms )
intdoubleClickInterval()
voidsetWheelScrollLines( intn )
intwheelScrollLines()
voidsetGlobalStrut( constQSize&strut )
QSizeglobalStrut()
voidsetLibraryPaths( constQStringList&paths )
QStringListlibraryPaths()
voidaddLibraryPath( constQString&path )
voidremoveLibraryPath( constQString&path )
voidsetStartDragTime( intms )
intstartDragTime()
voidsetStartDragDistance( intl )
intstartDragDistance()
voidsetReverseLayout( boolb )
boolreverseLayout()
inthorizontalAlignment( intalign )
boolisEffectEnabled( Qt::UIEffecteffect )
voidsetEffectEnabled( Qt::UIEffecteffect, boolenable = TRUE )
QWSDecoration &qwsDecoration()
voidqwsSetDecoration( QWSDecoration*d )
WindowsVersionwinVersion()
相关函数voidqAddPostRoutine( QtCleanUpFunctionp )
const char *qVersion()
boolqSysInfo( int*wordSize, bool*bigEndian )
voidqDebug( constchar*msg, ... )
voidqWarning( constchar*msg, ... )
voidqFatal( constchar*msg, ... )
voidqSystemWarning( constchar*msg, intcode )
voidQ_ASSERT( booltest )
voidQ_CHECK_PTR( void*p )
QtMsgHandlerqInstallMsgHandler( QtMsgHandlerh )
声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。