亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? qapplication.3qt

?? Trolltech公司發布的基于C++圖形開發環境
?? 3QT
?? 第 1 頁 / 共 5 頁
字號:
(Note that these are not member functions.).in +1c.ti -1c.BI "void \fBqFatal\fR (const char * " "msg" ", ...)".br.ti -1c.BI "void \fBqWarning\fR (const char * " "msg" ", ...)".br.ti -1c.BI "const char * \fBqVersion\fR ()".br.ti -1c.BI "void \fBqAddPostRoutine\fR (Q_CleanUpFunction " "p" ")".br.ti -1c.BI "void \fBASSERT\fR (bool " "test" ")".br.ti -1c.BI "void \fBqDebug\fR (const char * " "msg" ", ...)".br.ti -1c.BI "bool \fBqSysInfo\fR (int * " "wordSize" ", bool * " "bigEndian" ")".br.ti -1c.BI "void \fBCHECK_PTR\fR (void * " "p" ")".br.ti -1c.BI "msg_handler \fBqInstallMsgHandler\fR (msg_handler " "h" ")".br.in -1c.SH DESCRIPTIONThe QApplication class manages the GUI application's control flow and main settings..PPIt contains the main event loop, where all events from the window system and other sources are processed and dispatched. It also handles the application initialization and finalization, and provides session management. Finally, it handles most system-wide and application-wide settings..PPFor any GUI application that uses Qt, there is precisely one QApplication object, no matter whether the application has 0, 1, 2 or even more windows at the moment..PPThis object (you can access is using the global variable \fCqApp)\fR does a great many things, most importantly: .TPIt initializes the application to the user's desktop settings like palette(), font() or the doubleClickInterval(). It keeps track of these properties in case the user changes the desktop globally in some kind of control panel..TPIt performs event handling, meaning that it receives events from the underlying window system and sends them to the destination widgets. By using sendEvent() and postEvent() you can send your own events to widgets..TPIt parses common command line arguments and sets its internal state accordingly. See the constructor documentation below for more details about this..TPIt defines the application's look and feel, which is encapsulated in a QStyle object. This can be changed during runtime with setStyle()..TPIt specifies how the application is to allocate colors. See setColorSpec() for details..TPIt specifies the default text encoding (see setDefaultCodec() ) and provides localization of strings that are visible to the user via translate()..TPIt provides some magic objects like the desktop() and the clipboard()..TPIt knows about the application's windows, and lets you ask which widget is at a certain position using widgetAt(), lets you closeAllWindows(), gives you a list of topLevelWidgets(), etc..TPIt manages the application's mouse cursor handling, see setOverrideCursor() and setGlobalMouseTracking()..TPOn the X window system, it provides functions to flush and sync the communication stream, see flushX() and syncX()..TPIt provides support to implement sophisticated session management. This makes it possible for applications to terminate gracefully when the user logs out, to cancel a shutdown process if termination isn't possible and even to preserve the entire application state for a future session. See isSessionRestored(), sessionId() and commitData() and saveState() for details..IP.PPThe Application walk-through example contains a typical complete main() that does the usual things with QApplication..PPSince the QApplication object does so much initialization, it is absolutely necessary to create it before any other objects related to the user interface are created..PPSince it also deals with common command line arguments, it is usually a good idea to create it \fIbefore\fR any interpretation or modification of \fCargv\fR is done in the application itself. (Note also that for X11, setMainWidget() may change the main widget according to the \fC-geometry\fR option. To preserve this functionality, you must set your defaults before setMainWidget() and any overrides after.).PP\fBGroups of functions:\fR.TPSystem settings: desktopSettingsAware(), setDesktopSettingsAware(), cursorFlashTime(), setCursorFlashTime(), doubleClickInterval(), setDoubleClickInterval(), wheelScrollLines(), setWheelScrollLines(), palette(), setPalette(), font(), setFont(), fontMetrics()..TPEvent handling: exec(), processEvents(), processOneEvent(), enter_loop(), exit_loop(), exit(), quit(). sendEvent(), postEvent(), sendPostedEvents(), removePostedEvents(), notify(), x11EventFilter(), x11ProcessEvent(), winEventFilter()..TPGUI Styles: style(), setStyle(), polish()..TPColor usage: colorSpec(), setColorSpec()..TPText handling: setDefaultCodec(), installTranslator(), removeTranslator() translate()..TPCertain widgets: mainWidget(), setMainWidget(), allWidgets(), topLevelWidgets(), desktop(), activePopupWidget(), activeModalWidget(), clipboard(), focusWidget(), activeWindow(), widgetAt()..TPAdvanced cursor handling: hasGlobalMouseTracking(), setGlobalMouseTracking(), overrideCursor(), setOverrideCursor(), restoreOverrideCursor()..TPX Window System synchronization: flushX(), syncX()..TPSession management: isSessionRestored(), sessionId(), commitData(), saveState().TPMisc: closeAllWindows(), startingUp(), closingDown(),.PP\fBNon-GUI programs\fR.brWhile Qt is not optimized or designed for writing non-GUI programs, it's possible to use some of its classes without creating a QApplication. This can be useful if you wish to share code between a non-GUI server and a GUI client..PPExamples:.(lqwerty/main.cpp movies/main.cpp cursor/cursor.cpp aclock/main.cpp hello/main.cpp splitter/splitter.cpp listviews/main.cpp buttongroups/main.cpp biff/main.cpp validator/main.cpp iconview/main.cpp rangecontrols/main.cpp wizard/main.cpp dclock/main.cpp tabdialog/main.cpp scrollview/scrollview.cpp tooltip/main.cpp listbox/main.cpp drawdemo/drawdemo.cpp lineedits/main.cpp picture/picture.cpp i18n/main.cpp drawlines/connect.cpp themes/main.cpp progressbar/main.cpp xml/tagreader.)l-with-features/tagreader.cpphelpviewer/main.cpp life/main.cpp layout/layout.cpp richtext/main.cpp mdi/main.cpp fileiconview/main.cpp action/main.cpp checklists/main.cpp forever/forever.cpp qfd/qfd.cpp addressbook/main.cpp customlayout/main.cpp progress/progress.cpp qmag/qmag.cpp listboxcombo/main.cpp menu/menu.cpp tictac/main.cpp xform/xform.cpp showimg/main.cpp popup/popup.cpp rot13/rot13.cpp application/main.cpp scribble/main.cpp dirview/main.cpp desktop/desktop.cpp.SH MEMBER FUNCTION DOCUMENTATION.SH "QApplication::QApplication ( int & argc, char ** argv )"Initializes the window system and constructs an application object with the command line arguments \fIargc\fR and \fIargv.\fR.PPThe global \fCqApp\fR pointer refers to this application object. Only one application object should be created..PPThis application object must be constructed before any paint devices (includes widgets, pixmaps, bitmaps etc.).PPNotice that \fIargc\fR and \fIargv\fR might be changed. Qt removes command line arguments that it recognizes. The original \fIargc\fR and \fIargv\fR are can be accessed later by \fCqApp->argc()\fR and \fCqApp->argv().\fR The documentation for argv() contains a detailed description of how to process command line arguments..PPQt debugging options (not available if Qt was compiled with the NO_DEBUG flag defined):.TP\fC-nograb,\fR tells Qt to never grab the mouse or the keyboard..TP\fC-dograb\fR (only under X11), running under a debugger can cause an implicit -nograb, use -dograb to override..TP\fC-sync\fR (only under X11), switches to synchronous mode for debugging..PPSee Debugging Techniques for a more detailed explanation..PPAll Qt programs automatically support the following command line options:.TP\fC-style=\fR \fIstyle,\fR sets the application GUI style. Possible values are \fCmotif, windows,\fR and \fCplatinum.\fR.TP\fC-session=\fR \fIsession,\fR restores the application from an earlier session..PPThe X11 version of Qt also supports some traditional X11 command line options:.TP\fC-display\fR \fIdisplay,\fR sets the X display (default is $DISPLAY)..TP\fC-geometry\fR \fIgeometry,\fR sets the client geometry of the main widget..TP\fC-fn\fR or \fC-font\fR \fIfont,\fR defines the application font..TP\fC-bg\fR or \fC-background\fR \fIcolor,\fR sets the default background color and an application palette (light and dark shades are calculated)..TP\fC-fg\fR or \fC-foreground\fR \fIcolor,\fR sets the default foreground color..TP\fC-btn\fR or \fC-button\fR \fIcolor,\fR sets the default button color..TP\fC-name\fR \fIname,\fR sets the application name..TP\fC-title\fR \fItitle,\fR sets the application title (caption)..TP\fC-visual TrueColor,\fR forces the application to use a TrueColor visual on an 8-bit display..TP\fC-ncols\fR \fIcount,\fR limits the number of colors allocated in the color cube on a 8-bit display, if the application is using the \fCQApplication::ManyColor\fR color specification. If \fIcount\fR is 216 then a 6x6x6 color cube is used (ie. 6 levels of red, 6 of green, and 6 of blue); for other values, a cube approximately proportional to a 2x3x1 cube is used..TP\fC-cmap,\fR causes the application to install a private color map on an 8-bit display..PPSee also argc() and argv()..SH "QApplication::QApplication ( int & argc, char ** argv, Type type )"For Qt/Embedded, passing \fIQApplication::GuiServer\fR for \fItype\fR make this application the server (equivalent to running with the -qws option)..SH "QApplication::QApplication ( int & argc, char ** argv, bool GUIenabled )"Constructs an application object with the command line arguments \fIargc\fR and \fIargv.\fR If \fIGUIenabled\fR is TRUE, a normal application is constructed, otherwise a non-GUI application is created..PPSet \fIGUIenabled\fR to FALSE for programs without a graphical user interface that should be able to run without a window system..PPOn X11, the window system is initialized if \fIGUIenabled\fR is TRUE. If \fIGUIenabled\fR is FALSE, the application does not connect to the X-server..PPOn Windows, currently the window system is always initialized, regardless of the value of GUIenabled. This may change in future versions of Qt..PPThe following example shows how to create an application that uses a graphical interface when available..PP.nf.br  int main( int argc, char **argv ).br  {.br    QApplication app(argc, argv, useGUI);.br.br    if ( useGUI ) {.br       //start GUI version.br       ....br    } else {.br       //start non-GUI version.br       ....br    }.br    return app.exec();.br  }.fi.SH "QApplication::~QApplication () \fC[virtual]\fR"Cleans up any window system resources that were allocated by this application. Sets the global variable \fCqApp\fR to null..SH "void QApplication::aboutToQuit () \fC[signal]\fR"This signal is emitted when the application is about to quit the main event loop. This may happen either after a call to quit() from inside the application or when the users shuts down the entire desktop session..PPThe signal is particularly useful if your application has to do some last-second cleanups. Note that no user interaction is possible at this state..PPSee also quit()..SH "QWidget * QApplication::activeModalWidget () \fC[static]\fR"Returns the active modal widget..PPA modal widget is a special top level widget which is a subclass of QDialog that specifies the modal parameter of the constructor to TRUE. A modal widget must be finished before the user can continue with other parts of the program..PPThe modal widgets are organized in a stack. This function returns the active modal widget on top of the stack..PPSee also activePopupWidget() and topLevelWidgets()..SH "QWidget * QApplication::activePopupWidget () \fC[static]\fR"Returns the active popup widget..PPA popup widget is a special top level widget that sets the \fCWType_Popup\fR widget flag, e.g. the QPopupMenu widget. When the application opens a popup widget, all events are sent to the popup. Normal widgets and modal widgets cannot be accessed before the popup widget is closed..PPOnly other popup widgets may be opened when a popup widget is shown. The popup widgets are organized in a stack. This function returns the active popup widget on top of the stack..PPSee also activeModalWidget() and topLevelWidgets()..SH "QWidget * QApplication::activeWindow () const"Returns the application top-level window that has the keyboard input focus, or null if no application window has the focus. Note that there might be an activeWindow even if there is no focusWidget(), for example if no widget in that window accepts key events..PPSee also QWidget::setFocus(), QWidget::hasFocus() and focusWidget()..SH "QWidgetList * QApplication::allWidgets () \fC[static]\fR"Returns a list of all the widgets in the application..PPThe list is created using new and must be deleted by the caller..PPThe list is empty (QList::isEmpty()) if there are no widgets..PPNote that some of the widgets may be hidden..PPExample:.PP.nf.br    //.br    // Updates all widgets..br    //.br    QWidgetList  *list = QApplication::allWidgets();.br    QWidgetListIt it( *list );          // iterate over the widgets.br    QWidget * w;.br    while ( (w=it.current()) != 0 ) {   // for each widget....br        ++it;.br        w->update();.br    }.br    delete list;                        // delete the list, not the widgets.fi.PPThe QWidgetList class is defined in the qwidgetlist.h header file..PP\fBWarning:\fR Delete the list away as soon you have finished using it. The widgets in the list may be deleted by someone else at any time..PPSee also topLevelWidgets(), QWidget::isVisible() and QList::isEmpty(),..SH "int QApplication::argc () const"Returns the number of command line arguments..PPThe documentation for argv() contains a detailed description of how to process command line arguments..PPSee also argv() and QApplication::QApplication()..SH "char ** QApplication::argv () const"Returns the command line argument vector..PP\fCargv()[0]\fR is the program name, \fCargv()[1]\fR is the first argument and \fCargv()[argc()-1]\fR is the last argument..PPA QApplication object is constructed by passing \fIargc\fR and \fIargv\fR from the \fCmain()\fR function. Some of the arguments may be recognized as Qt options removed from the argument vector. For example, the X11 version of Qt knows about \fC-display, -font\fR and a few more options..PPExample:.PP.nf.br    // showargs.cpp - displays program arguments in a list box.br.br    #include <qapplication.h>.br    #include <qlistbox.h>.br.br    int main( int argc, char **argv ).br    {.br        QApplication a( argc, argv );.br        QListBox b;.br        a.setMainWidget( &b );.br        for ( int i=0; i<a.argc(); i++ )        // a.argc() == argc.br            b.insertItem( a.argv()[i] );        // a.argv()[i] == argv[i].br        b.show();.br        return a.exec();.br    }.fi.PPIf you run \fCshowargs -display unix:0 -font 9x15bold hello world\fR under X11, the list box contains the three strings" showargs", "hello" and "world"..PP

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产91精品入口| 欧美老肥妇做.爰bbww| 亚洲二区视频在线| 亚洲成人精品一区| 亚洲精品一区二区精华| 欧美一卡2卡3卡4卡| 国产精品美女一区二区三区| 日韩国产一二三区| 99精品在线免费| 26uuu另类欧美亚洲曰本| 一区二区三区久久久| 国产成人精品1024| 欧美一级一区二区| 亚洲综合小说图片| 成人激情文学综合网| 久久伊99综合婷婷久久伊| 亚洲成a人在线观看| 99精品视频一区| 中文字幕av资源一区| 久久99国产精品久久| 在线观看一区不卡| 亚洲日本va在线观看| 成人av在线播放网站| 久久久久国色av免费看影院| 麻豆极品一区二区三区| 欧美精品乱码久久久久久| 玉米视频成人免费看| 成人app网站| 亚洲国产精品激情在线观看| 国产精品88888| 久久久国产精品麻豆| 黄色日韩三级电影| 精品欧美一区二区三区精品久久| 日本在线不卡视频一二三区| 宅男在线国产精品| 美腿丝袜在线亚洲一区| 91精品国产入口| 免费久久精品视频| 欧美zozo另类异族| 狠狠色狠狠色合久久伊人| 久久这里只有精品首页| 国产专区欧美精品| 国产欧美一区二区在线观看| 国产福利电影一区二区三区| 欧美国产精品v| 99久久婷婷国产精品综合| 中文字幕日韩一区二区| 色哟哟精品一区| 性做久久久久久免费观看欧美| 精品视频在线免费观看| 无码av免费一区二区三区试看| 欧美绝品在线观看成人午夜影视| 日本欧美肥老太交大片| 日韩免费在线观看| 国产91对白在线观看九色| 中文字幕在线播放不卡一区| 99精品久久免费看蜜臀剧情介绍| 亚洲精品免费在线播放| 欧美日本一区二区| 美女视频黄 久久| 久久精品综合网| 日韩欧美在线网站| 国产精品一级在线| 亚洲视频香蕉人妖| 欧美美女一区二区在线观看| 国精产品一区一区三区mba视频| 中文天堂在线一区| 色菇凉天天综合网| 久久精品99久久久| 成人欧美一区二区三区小说| 欧美日韩国产高清一区二区三区 | 麻豆精品视频在线观看| 亚洲国产成人在线| 欧美巨大另类极品videosbest | 亚洲国产精品99久久久久久久久 | 亚洲图片欧美色图| 欧美成人a视频| 91亚洲午夜精品久久久久久| 首页国产欧美日韩丝袜| 国产精品私人影院| 777亚洲妇女| 成人免费毛片片v| 日韩高清国产一区在线| 一区免费观看视频| 欧美r级电影在线观看| 色综合久久久久| 国产高清不卡一区| 日韩精品乱码av一区二区| 日韩精品色哟哟| 国产精品天美传媒沈樵| 8x福利精品第一导航| av激情综合网| 国产一区二区主播在线| 亚洲va天堂va国产va久| 亚洲天堂久久久久久久| 久久久无码精品亚洲日韩按摩| 欧美色综合影院| 99久久99久久久精品齐齐| 久久精品国产在热久久| 亚洲成人免费在线观看| 国产精品久久久久精k8| 精品国免费一区二区三区| 欧美日韩一区二区三区不卡| 91香蕉国产在线观看软件| 国产福利一区二区| 国产美女一区二区| 精品一区二区三区不卡| 日韩电影在线免费看| 亚洲一区二区欧美日韩| 亚洲免费av高清| ㊣最新国产の精品bt伙计久久| 国产亚洲欧美日韩日本| ww久久中文字幕| 精品福利二区三区| 日韩免费一区二区三区在线播放| 欧美日韩亚洲另类| 欧美日韩一区精品| 欧美精品一二三| 欧美日韩国产综合视频在线观看| 日本久久一区二区| 一本色道久久综合亚洲aⅴ蜜桃| 成人综合婷婷国产精品久久免费| 国产精品一区二区在线看| 经典三级在线一区| 国产精品综合二区| 国产成人精品一区二区三区网站观看| 国产一区欧美二区| 国产成人av电影在线| 国产成人啪免费观看软件 | 26uuu精品一区二区| 久久久五月婷婷| 国产精品九色蝌蚪自拍| 亚洲视频网在线直播| 亚洲人快播电影网| 午夜电影网一区| 久久av中文字幕片| 高清成人在线观看| 97久久超碰国产精品电影| 91老师国产黑色丝袜在线| 在线看日韩精品电影| 制服丝袜亚洲精品中文字幕| 精品入口麻豆88视频| 中文在线免费一区三区高中清不卡| 亚洲国产精华液网站w| 亚洲综合久久av| 日韩av中文字幕一区二区三区| 久草这里只有精品视频| 成人av网站在线观看免费| 欧洲国内综合视频| 精品久久久久久久久久久久久久久 | 色激情天天射综合网| 欧美福利电影网| 国产丝袜美腿一区二区三区| 一区二区三区日韩欧美精品| 久久精品国产成人一区二区三区 | 91精品国产综合久久精品app| 精品sm在线观看| 夜夜亚洲天天久久| 久久国产精品99精品国产| 波多野结衣中文字幕一区| 欧美福利视频导航| 久久97超碰色| 91在线播放网址| 欧美一区二区二区| 国产精品免费视频网站| 一区二区三区四区在线| 国产九色精品成人porny| 91丨porny丨户外露出| 7777精品伊人久久久大香线蕉超级流畅| 不卡的av中国片| 欧美精品一区二区三区在线播放| 国产精品私房写真福利视频| 视频一区二区不卡| 国产经典欧美精品| 欧美亚洲一区三区| 久久久99精品免费观看| 久久久国产午夜精品| 国产精品不卡在线| 久久精品国产秦先生| 色88888久久久久久影院按摩 | 日日夜夜免费精品| 成人av电影免费在线播放| 欧美一区二区精品在线| 欧美极品xxx| 国产一区二区三区四| 欧美色窝79yyyycom| 国产精品毛片大码女人| 精品综合免费视频观看| 欧美色老头old∨ideo| 国产精品乱码一区二区三区软件 | 欧美精品一区二区在线播放| 视频在线观看91| 色偷偷成人一区二区三区91| 久久久久久久电影| 国产精品18久久久| 欧美成人一区二区| 三级不卡在线观看| 日韩久久久精品| 日韩福利电影在线| 欧美另类videos死尸|