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

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

?? qapplication.3qt

?? Trolltech公司發布的基于C++圖形開發環境
?? 3QT
?? 第 1 頁 / 共 5 頁
字號:
See also argc() and QApplication::QApplication()..SH "void QApplication::beep () \fC[static]\fR"Sounds the bell, using the default volume and sound..SH "QClipboard * QApplication::clipboard () \fC[static]\fR"Returns a pointer to the application global clipboard..SH "void QApplication::closeAllWindows () \fC[slot]\fR"A convenience function that closes all toplevel windows..PPThe function is particularly useful for applications with many toplevel windows. It could for example be connected to a "Quit" entry in the file menu as shown in the following code example:.PP.nf.br    // the "Quit" menu entry should try to close all windows.br    QPopupMenu* file = new QPopupMenu( this );.br    file->insertItem( tr("&Quit"), qApp, SLOT(closeAllWindows()), CTRL+Key_Q );.br.br    // when the last window was closed, the application should quit.br    connect( qApp, SIGNAL( lastWindowClosed() ), qApp, SLOT( quit() ) );.fi.PPThe windows are closed in random order, until one window does not accept the close event..PPSee also QWidget::close(), QWidget::closeEvent(), lastWindowClosed(), quit(), topLevelWidgets() and QWidget::isTopLevel()..SH "bool QApplication::closingDown () \fC[static]\fR"Returns TRUE if the application objects are being destroyed..PPSee also startingUp()..SH "int QApplication::colorSpec () \fC[static]\fR"Returns the color specification..PPSee also QApplication::setColorSpec()..SH "void QApplication::commitData ( QSessionManager & sm ) \fC[virtual]\fR"This function deals with session management. It is invoked when the QSessionManager wants the application to commit all its data..PPUsually this means saving of all open files, after getting permission from the user. Furthermore you may want to provide the user a way to cancel the shutdown..PPNote that you should not exit the application within this function. Instead, the session manager may or may not do this afterwards, depending on the context..PP\fBImportant\fR.brWithin this function, no user interaction is possible, \fIunless\fR you ask the session manager \fIsm\fR for explicit permission. See QSessionManager::allowsInteraction() and QSessionManager::allowsErrorInteraction() for details and example usage..PPThe default implementation requests interaction and sends a close event to all visible toplevel widgets. If at least one event was rejected, the shutdown is cancelled..PPSee also isSessionRestored(), sessionId() and saveState()..SH "int QApplication::cursorFlashTime () \fC[static]\fR"Returns the text cursor's flash time in milliseconds. The flash time is the time required to display, invert and restore the caret display..PPThe default value on X11 is 1000 milliseconds. On Windows, the control panel value is used..PPWidgets should not cache this value since it may vary any time the user changes the global desktop settings..PPSee also setCursorFlashTime()..SH "QTextCodec* QApplication::defaultCodec () const"Returns the default codec (see setDefaultCodec()). Returns 0 by default (no codec)..SH "QWidget * QApplication::desktop () \fC[static]\fR"Returns the desktop widget (also called the root window)..PPThe desktop widget is useful for obtaining the size of the screen. It may also be possible to draw on the desktop. We recommend against assuming that it's possible to draw on the desktop, as it works on some machines and not on others..PP.nf.br    QWidget *d = QApplication::desktop();.br    int w=d->width();                   // returns screen width.br    int h=d->height();                  // returns screen height.fi.PPExamples:.(lhelpviewer/main.cpp qmag/qmag.cpp scribble/main.cpp.)l.SH "bool QApplication::desktopSettingsAware () \fC[static]\fR"Returns the value set by setDesktopSettingsAware(), by default TRUE..PPSee also setDesktopSettingsAware()..SH "int QApplication::doubleClickInterval () \fC[static]\fR"Returns the maximum duration for a double click..PPThe default value on X11 is 400 milliseconds. On Windows, the control panel value is used..PPSee also setDoubleClickInterval()..SH "int QApplication::enter_loop ()"This function enters the main event loop (recursively). Do not call it unless you really know what you are doing..PPSee also exit_loop() and loopLevel()..SH "int QApplication::exec ()"Enters the main event loop and waits until exit() is called or the main widget is destroyed, and Returns the value that was set via to exit() (which is 0 if exit() is called via quit())..PPIt is necessary to call this function to start event handling. The main event loop receives events from the window system and dispatches these to the application widgets..PPGenerally speaking, no user interaction can take place before calling exec(). As a special case, modal widgets like QMessageBox can be used before calling exec(), because modal widgets call exec() to start a local event loop..PPTo make your application perform idle processing, i.e. executing a special function whenever there are no pending events, use a QTimer with 0 timeout. More advanced idle processing schemes can be achieved by using processEvents() and processOneEvent()..PPSee also quit(), exit(), processEvents() and setMainWidget()..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 mainlyQt/editor.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.SH "void QApplication::exit ( int retcode=0 ) \fC[static]\fR"Tells the application to exit with a return code..PPAfter this function has been called, the application leaves the main event loop and returns from the call to exec(). The exec() function returns \fIretcode.\fR.PPBy convention, \fIretcode\fR 0 means success, any non-zero value indicates an error..PPNote that unlike the C library function of the same name, this function \fIdoes\fR returns to the caller - it is event processing that stops..PPSee also quit() and exec()..PPExamples:.(lpicture/picture.cpp.)l.SH "void QApplication::exit_loop ()"This function leaves from a recursive call to the main event loop. Do not call it unless you are an expert..PPSee also enter_loop() and loopLevel()..SH "void QApplication::flushX () \fC[static]\fR"Flushes the X event queue in the X11 implementation. This normally returns almost immediately. Does nothing on other platforms..PPSee also syncX()..SH "QWidget * QApplication::focusWidget () const"Returns the application widget that has the keyboard input focus, or null if no widget in this application has the focus..PPSee also QWidget::setFocus(), QWidget::hasFocus() and activeWindow()..SH "QFont QApplication::font ( const QWidget * w = 0 ) \fC[static]\fR"Returns the default font for a widget. Basically this function uses w->className() to get a font for it..PPIf \fIw\fR is 0 the default application font is returned..PPSee also setFont(), fontMetrics() and QWidget::font()..SH "QFontMetrics QApplication::fontMetrics () \fC[static]\fR"Returns display (screen) font metrics for the application font..PPSee also font(), setFont(), QWidget::fontMetrics() and QPainter::fontMetrics()..SH "QSize QApplication::globalStrut () \fC[static]\fR"Returns the global strut of the application..PPSee also setGlobalStrut()..SH "void QApplication::guiThreadAwake () \fC[signal]\fR"This signal is emitted when the GUI threads is about to process a cycle of the event loop..PPSee also wakeUpGuiThread()..SH "bool QApplication::hasGlobalMouseTracking () \fC[static]\fR"Returns TRUE if global mouse tracking is enabled, otherwise FALSE..PPSee also setGlobalMouseTracking()..SH "void QApplication::installTranslator ( QTranslator * mf )"Adds \fImf\fR to the list of message files to be used for localization. Message files are searched starting with the most recently added file..PPSee also removeTranslator(), translate() and QObject::tr()..SH "bool QApplication::isEffectEnabled ( Qt::UIEffect effect ) \fC[static]\fR"Returns TRUE if \fIeffect\fR is enabled, otherwise FALSE..PPBy default, Qt will try to use the desktop settings, and setDesktopSettingsAware() must be called to prevent this..PPsa\\ setEffectEnabled(), Qt::UIEffect..SH "bool QApplication::isSessionRestored () const"Returns whether the application has been restored from an earlier session..PPSee also sessionId(), commitData() and saveState()..SH "void QApplication::lastWindowClosed () \fC[signal]\fR"This signal is emitted when the user has closed the last remaining top level window..PPThe signal is very useful when your application has many top level widgets but no main widget. You can then connect it to the quit() slot..PPFor convenience, transient toplevel widgets such as popup menus and dialogs are omitted..PPSee also mainWidget(), topLevelWidgets(), QWidget::isTopLevel() and QWidget::close()..SH "void QApplication::lock ()"Lock the Qt library mutex. If another thread has already locked the mutex, the calling thread will block until the other thread has unlocked the mutex..PPSee also unlock() and locked()..SH "bool QApplication::locked ()"Returns TRUE if the Qt library mutex is locked by a different thread, otherwise returns FALSE..PP\fINOTE:\fR Due to differing implementations of recursive mutexes on various platforms, calling this function from the same thread that previous locked the mutex will return undefined results..PPSee also lock() and unlock()..SH "int QApplication::loopLevel () const"Returns the current loop level.PPSee also enter_loop() and exit_loop()..SH "QWidget * QApplication::mainWidget () const"Returns the main application widget, or a null pointer if there is not a defined main widget..PPSee also setMainWidget()..SH "bool QApplication::notify ( QObject * receiver, QEvent * event ) \fC[virtual]\fR"Sends \fIevent\fR to \fIreceiver:\fR \fCreceiver->event( event )\fR Returns the value that is returned from the receiver's event handler..PPReimplementing this virtual function is one of five ways to process an event: .IP 1Reimplementing this function. Very powerful, you get \fIcomplete\fR control, but of course only one subclass can be qApp..IP 2Installing an event filter on qApp. Such an event filter gets to process all events for all widgets, so it's just as powerful as reimplementing notify(), and in this way it's possible to have more than one application-global event filter. Global event filter get to see even mouse events for disabled widgets, and if global mouse tracking is enabled, mouse move events for all widgets..IP 3Reimplementing QObject::event() (as QWidget does). If you do this you get tab key-presses, and you get to see the events before any widget-specific event filters..IP 4Installing an event filter on the object. Such an even filter gets all the events except Tab and Shift-Tab key presses..IP 5Finally, reimplementing paintEvent(), mousePressEvent() and so on. This is the normal, easiest and least powerful way. .PPSee also QObject::event() and installEventFilter()..SH "QCursor * QApplication::overrideCursor () \fC[static]\fR"Returns the active application override cursor..PPThis function returns 0 if no application cursor has been defined (i.e. the internal cursor stack is empty)..PPSee also setOverrideCursor() and restoreOverrideCursor()..SH "QPalette QApplication::palette ( const QWidget * w = 0 ) \fC[static]\fR"Returns a pointer to the default application palette. There is always an application palette, i.e. the returned pointer is guaranteed to be non-null..PPIf a widget is passed as argument, the default palette for the widget's class is returned. This may or may not be the application palett. In most cases there isn't be a special palette for certain types of widgets, but one notable exception is the popup menu under Windows, if the user has defined a special background color for menus in the display settings..PPSee also setPalette() and QWidget::palette()..SH "void QApplication::polish ( QWidget * w ) \fC[virtual]\fR"Polishing of widgets..PPUsually widgets call this automatically when they are polished. It may be used to do some style-based central customization of widgets..PPNote that you are not limited to public functions of QWidget. Instead, based on meta information like QObject::className() you are able to customize any kind of widgets..PPSee also QStyle::polish(), QWidget::polish(), setPalette() and setFont()..SH "void QApplication::postEvent ( QObject * receiver, QEvent * event ) \fC[static]\fR"Stores the event in a queue and returns immediately..PPThe event must be allocated on the heap, as it is deleted when the event has been posted..PPWhen control returns to the main event loop, all events that are stored in the queue will be sent using the notify() function..PPSee also sendEvent()..SH "void QApplication::processEvents ()"Processes pending events, for 3 seconds or until there are no more events to process, whichever is shorter..PPYou can call this function occasionally when your program is busy doing a long operation (e.g. copying a file)..PPSee also processOneEvent(), exec() and QTimer..SH "void QApplication::processEvents ( int maxtime )"Processes pending events for \fImaxtime\fR milliseconds or until there are no more events to process, whichever is shorter..PPYou can call this function occasionally when you program is busy doing a long operation (e.g. copying a file)..PPSee also processOneEvent(), exec() and QTimer..SH "void QApplication::processOneEvent ()"Waits for an event to occur, processes it, then returns..PPThis function is useful for adapting Qt to situations where the event processing must be grafted into existing program loops. Using this function in new applications may be an indication of design problems..PPSee also processEvents(), exec() and QTimer..SH "void QApplication::quit () \fC[slot]\fR"Tells the application to exit with return code 0 (success). Equivalent to calling QApplication::exit( 0 )..PPThis function is a slot, so you may connect any signal to activate quit()..PPExample:.PP.nf.br    QPushButton *quitButton = new QPushButton( "Quit" );.br    connect( quitButton, SIGNAL(clicked()), qApp, SLOT(quit()) );.fi.PPSee also exit() and aboutToQuit()..SH "void QApplication::removePostedEvents ( QObject * receiver ) \fC[static]\fR"Removes all events posted using postEvent() for \fIreceiver.\fR.PPThe events are \fInot\fR dispatched, simply removed from the queue. You should never need to call this function. If you do call it, be aware that killing events may cause \fIreceiver\fR to break one or more invariants..SH "void QApplication::removeTranslator ( QTranslator * mf )"Removes \fImf\fR from the list of message files used by this application. Does not, of course, delete mf..PPSee also installTranslator(), translate() and QObject::tr()..SH "void QApplication::restoreOverrideCursor () \fC[static]\fR"Undoes the last setOverrideCursor()..PPIf setOverrideCursor() has been called twice, calling restoreOverrideCursor() will activate the first cursor set. Calling this function a second time restores the original widgets cursors..PPSee also setOverrideCursor() and overrideCursor()..SH "void QApplication::saveState ( QSessionManager & sm ) \fC[virtual]\fR"This function deals with session management. It is invoked when the session manager wants the application to preserve its state for a future session..PPFor a text editor this would mean creating a temporary file that includes the current contents of the edit buffers, the location of the cursor and other aspects of the current editing session..PPNote that you should never exit the application within this function. Instead, the session manager may or may not do this afterwards, depending on the context. Futhermore, most session managers will very likely request a saved state immediately after the application has been started. This permits the session manager to learn about the application's restart policy..PP\fBImportant\fR.brWithin this function, no user interaction is possible, \fIunless\fR you ask the session manager \fIsm\fR for explicit permission. See QSessionManager::allowsInteraction() and QSessionManager::allowsErrorInteraction() for details..PPSee also isSessionRestored(), sessionId() and commitData()..SH "bool QApplication::sendEvent ( QObject * receiver, QEvent * event ) \fC[static]\fR"Sends an event directly to a receiver, using the notify() function. Returns the value that was returned from the event handler..PPSee also postEvent() and notify()..PPExamples:.(lpopup/popup.cpp

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
色偷偷88欧美精品久久久| 日韩午夜在线观看| 日韩午夜在线影院| 亚洲一区二区三区在线播放| 美国毛片一区二区| 欧洲精品在线观看| 日本一区二区高清| 激情欧美日韩一区二区| 欧美在线观看视频一区二区三区| 久久精品一二三| 美女任你摸久久| 欧美男男青年gay1069videost | 日韩一区二区三区四区 | 不卡一区在线观看| 日韩视频免费直播| 天天操天天色综合| 色婷婷激情综合| 国产精品成人免费精品自在线观看| 日韩电影在线免费观看| 色成人在线视频| 中文字幕一区二区视频| 高潮精品一区videoshd| 2021国产精品久久精品| 日本不卡视频在线| 欧美久久久久中文字幕| 亚洲sss视频在线视频| 91理论电影在线观看| 国产精品福利一区二区| 成人一区在线观看| 国产亚洲短视频| 国产成人8x视频一区二区| 久久婷婷国产综合国色天香| 激情欧美一区二区三区在线观看| 日韩手机在线导航| 国内成人自拍视频| 久久久久久一二三区| 国产精品一区二区黑丝| 久久精品在线免费观看| 大陆成人av片| 亚洲色图丝袜美腿| 欧美午夜精品一区| 日韩电影在线观看电影| 精品久久久久久亚洲综合网 | 久久综合久久鬼色| 国产成人免费av在线| 中文字幕一区二区三区四区不卡| 成人99免费视频| 亚洲少妇30p| 欧美日韩综合色| 美腿丝袜亚洲综合| 久久久久高清精品| 国产午夜三级一区二区三| 久久国产免费看| 日本一区二区三级电影在线观看| 成人午夜精品在线| 夜夜嗨av一区二区三区网页| 91精品欧美福利在线观看| 狂野欧美性猛交blacked| 久久精品一区二区三区不卡| 99国产精品久久久久| 日韩高清在线观看| 日本一区二区三区在线不卡| 色婷婷精品大在线视频| 久久99这里只有精品| 国产精品成人午夜| 日韩三级在线观看| 99国产精品国产精品毛片| 日本在线播放一区二区三区| 久久综合国产精品| 欧美唯美清纯偷拍| 福利视频网站一区二区三区| 亚洲国产欧美在线| 国产精品污网站| 欧美色图免费看| 国产成人av电影在线| 亚洲精品国产a久久久久久| 欧美mv日韩mv亚洲| 色噜噜久久综合| 国产在线视频不卡二| 一区二区高清视频在线观看| 久久影院午夜论| 欧美色涩在线第一页| 国产成人精品网址| 日本午夜一区二区| 一区二区三区在线视频免费观看| 精品国产乱码久久久久久闺蜜| 色天天综合久久久久综合片| 国产黄色91视频| 免费在线观看一区| 亚洲国产aⅴ天堂久久| ●精品国产综合乱码久久久久| 日韩美女主播在线视频一区二区三区| 91免费精品国自产拍在线不卡| 精品一区二区三区免费毛片爱| 亚洲一区影音先锋| 中文字幕在线不卡国产视频| 久久亚洲二区三区| 欧美一区二区三区思思人 | 国产精品亚洲视频| 蜜臀av一级做a爰片久久| 樱花影视一区二区| 亚洲美女一区二区三区| 国产精品美女久久久久aⅴ国产馆| 日韩午夜在线观看视频| 欧美丰满一区二区免费视频| 在线观看精品一区| 色999日韩国产欧美一区二区| 成人丝袜视频网| 国产一区二区在线影院| 久草热8精品视频在线观看| 日本三级亚洲精品| 天天操天天色综合| 日本一不卡视频| 午夜欧美一区二区三区在线播放| 亚洲综合一二区| 亚洲一区二区三区中文字幕在线| 亚洲精品国产精品乱码不99| 亚洲色图欧美激情| gogogo免费视频观看亚洲一| 成人教育av在线| 国产91精品入口| www.日韩精品| 一本久道久久综合中文字幕| 99久久精品国产导航| 在线看国产一区| 欧美肥胖老妇做爰| 日韩欧美视频在线| 久久久久国产精品人| 国产精品久久久久久久久免费丝袜 | 欧美日韩电影一区| 欧美一二三区在线观看| 久久无码av三级| 亚洲国产成人私人影院tom| 国产精品看片你懂得| 一区二区三区不卡在线观看| 婷婷久久综合九色综合绿巨人| 天天色天天爱天天射综合| 极品少妇一区二区| 99国产精品久久久久久久久久| 欧美视频中文一区二区三区在线观看| 欧美丰满嫩嫩电影| 欧美激情综合在线| 艳妇臀荡乳欲伦亚洲一区| 日韩av中文字幕一区二区三区 | 天堂一区二区在线免费观看| 麻豆国产欧美一区二区三区| 成人综合在线网站| 欧美日韩国产美女| 国产欧美视频一区二区| 一区二区三区免费网站| 久久91精品国产91久久小草| 91丨porny丨在线| 日韩一区二区三区高清免费看看| 欧美激情一区二区三区全黄 | 日韩免费视频一区二区| 中国色在线观看另类| 亚洲成av人片观看| 国产成人综合在线| 91精品国产综合久久精品麻豆| 欧美国产激情一区二区三区蜜月| 亚洲一二三四在线观看| 国产高清精品在线| 日韩一区二区精品| 亚洲人成在线观看一区二区| 男女男精品视频| 欧美综合亚洲图片综合区| 久久久久国产精品免费免费搜索| 午夜视频在线观看一区二区| 成人av电影在线观看| 日韩美女在线视频| 亚洲成av人片| 91小视频在线免费看| 久久久www成人免费毛片麻豆 | 欧美一区二区女人| 亚洲人吸女人奶水| 粉嫩aⅴ一区二区三区四区| 欧美成人一区二区三区在线观看| 亚洲激情成人在线| 成人免费看的视频| 国产清纯在线一区二区www| 久久国产精品第一页| 欧美另类变人与禽xxxxx| 亚洲人成网站在线| 暴力调教一区二区三区| 亚洲国产高清在线| 国产乱码精品一区二区三| 日韩中文字幕亚洲一区二区va在线 | 一片黄亚洲嫩模| 成人精品免费网站| 久久九九久精品国产免费直播| 免费人成在线不卡| 欧美一级视频精品观看| 日韩和欧美一区二区三区| 欧美无人高清视频在线观看| 一区二区三区高清在线| 欧洲亚洲精品在线| 亚洲成人在线网站| 91精品国产综合久久久久久久久久 | 国产ts人妖一区二区| 久久久久国色av免费看影院|