您好,登录后才能下订单哦!
QApplication类管理图形用户界面应用程序的控制流和主要设置。 详情请见……
#include <qapplication.h>
继承了QObject。
被QXtApplication继承。
所有成员函数的列表。
QApplication ( int & argc, char ** argv )
QApplication ( int & argc, char ** argv, bool GUIenabled )
enum Type { Tty, GuiClient, GuiServer }
QApplication ( int & argc, char ** argv, Type type )
QApplication ( Display * dpy, HANDLE visual = 0, HANDLE colormap = 0 )
QApplication ( Display * dpy, int argc, char ** argv, HANDLE visual = 0, HANDLE colormap = 0 )
virtual ~QApplication ()
int argc () const
char ** argv () const
Type type () const
enum ColorSpec { NormalColor = 0, CustomColor = 1, ManyColor = 2 }
QWidget * mainWidget () const
virtual void setMainWidget ( QWidget * mainWidget )
virtual void polish ( QWidget * w )
QWidget * focusWidget () const
QWidget * activeWindow () const
int exec ()
void processEvents ()
void processEvents ( int maxtime )
void processOneEvent ()
bool hasPendingEvents ()
int enter_loop ()
void exit_loop ()
int loopLevel () const
virtual bool notify ( QObject * receiver, QEvent * e )
void setDefaultCodec ( QTextCodec * codec )
QTextCodec * defaultCodec () const
void installTranslator ( QTranslator * mf )
void removeTranslator ( QTranslator * mf )
enum Encoding { DefaultCodec, UnicodeUTF8 }
QString translate ( const char * context, const char * sourceText, const char * comment = 0, Encoding encoding = DefaultCodec ) const
virtual bool macEventFilter ( EventRef )
virtual bool winEventFilter ( MSG * )
virtual bool x11EventFilter ( XEvent * )
int x11ProcessEvent ( XEvent * event )
virtual bool qwsEventFilter ( QWSEvent * )
void qwsSetCustomColors ( QRgb * colorTable, int start, int numColors )
void winFocus ( QWidget * widget, bool gotFocus )
bool isSessionRestored () const
QString sessionId () const
virtual void commitData ( QSessionManager & sm )
virtual void saveState ( QSessionManager & sm )
void wakeUpGuiThread ()
void lock ()
void unlock ( bool wakeUpGui = TRUE )
bool locked ()
bool tryLock ()
void quit ()
void closeAllWindows ()
void lastWindowClosed ()
void aboutToQuit ()
void guiThreadAwake ()
QStyle & style ()
void setStyle ( QStyle * style )
QStyle * setStyle ( const QString & style )
int colorSpec ()
void setColorSpec ( int spec )
QCursor * overrideCursor ()
void setOverrideCursor ( const QCursor & cursor, bool replace = FALSE )
void restoreOverrideCursor ()
bool hasGlobalMouseTracking ()
void setGlobalMouseTracking ( bool enable )
QPalette palette ( const QWidget * w = 0 )
void setPalette ( const QPalette & palette, bool informWidgets = FALSE, const char * className = 0 )
QFont font ( const QWidget * w = 0 )
void setFont ( const QFont & font, bool informWidgets = FALSE, const char * className = 0 )
QFontMetrics fontMetrics ()
QWidgetList * allWidgets ()
QWidgetList * topLevelWidgets ()
QDesktopWidget * desktop ()
QWidget * activePopupWidget ()
QWidget * activeModalWidget ()
QClipboard * clipboard ()
QWidget * widgetAt ( int x, int y, bool child = FALSE )
QWidget * widgetAt ( const QPoint & pos, bool child = FALSE )
void exit ( int retcode = 0 )
bool sendEvent ( QObject * receiver, QEvent * event )
void postEvent ( QObject * receiver, QEvent * event )
void sendPostedEvents ( QObject * receiver, int event_type )
void sendPostedEvents ()
void removePostedEvents ( QObject * receiver )
bool startingUp ()
bool closingDown ()
void flushX ()
void flush ()
void syncX ()
void beep ()
void setWinStyleHighlightColor ( const QColor & c ) (obsolete)
const QColor & winStyleHighlightColor () (obsolete)
void setDesktopSettingsAware ( bool on )
bool desktopSettingsAware ()
void setCursorFlashTime ( int msecs )
int cursorFlashTime ()
void setDoubleClickInterval ( int ms )
int doubleClickInterval ()
void setWheelScrollLines ( int n )
int wheelScrollLines ()
void setGlobalStrut ( const QSize & strut )
QSize globalStrut ()
void setLibraryPaths ( const QStringList & paths )
QStringList libraryPaths ()
void addLibraryPath ( const QString & path )
void removeLibraryPath ( const QString & path )
void setStartDragTime ( int ms )
int startDragTime ()
void setStartDragDistance ( int l )
int startDragDistance ()
void setReverseLayout ( bool b )
bool reverseLayout ()
int horizontalAlignment ( int align )
bool isEffectEnabled ( Qt::UIEffect effect )
void setEffectEnabled ( Qt::UIEffect effect, bool enable = TRUE )
QWSDecoration & qwsDecoration ()
void qwsSetDecoration ( QWSDecoration * d )
WindowsVersion winVersion ()
void qAddPostRoutine ( QtCleanUpFunction p )
const char * qVersion ()
bool qSysInfo ( int * wordSize, bool * bigEndian )
void qDebug ( const char * msg, ... )
void qWarning ( const char * msg, ... )
void qFatal ( const char * msg, ... )
void qSystemWarning ( const char * msg, int code )
void Q_ASSERT ( bool test )
void Q_CHECK_PTR ( void * p )
QtMsgHandler qInstallMsgHandler ( QtMsgHandler h )
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。