QApplication类参考
QApplication类参考
QApplication类管理图形用户界面应用程序的控制流和主要设置。 详情请见……
兴化网站建设公司创新互联建站,兴化网站设计制作,有大型网站制作公司丰富经验。已为兴化上千多家提供企业网站建设服务。企业网站搭建\外贸网站建设要多少钱,请找那个售后服务好的兴化做网站的公司定做!
#include
继承了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 )
当前名称:QApplication类参考
当前链接:http://ybzwz.com/article/jdpcoj.html