Qevent collation: 140 types, 29 inheritance classes, 7 functions, 3 event sources

Source: Internet
Author: User

140 Types of events:

Qevent::none
Qevent::accessibilitydescription
Qevent::accessibilityhelp
Qevent::accessibilityprepare
qevent::actionadded
Qevent::actionchanged
Qevent::actionremoved
Qevent::activationchange
Qevent::applicationactivate
qevent::applicationactivated
Qevent::applicationdeactivate
Qevent::applicationfontchange
Qevent::applicationlayoutdirectionchange
Qevent::applicationpalettechange
Qevent::applicationwindowiconchange
qevent::childadded
qevent::childinserted
Qevent::childpolished
Qevent::childremoved
Qevent::clipboard
Qevent::close
Qevent::closesoftwareinputpanel
Qevent::contentsrectchange
Qevent::contextmenu
Qevent::cursorchange
Qevent::D eferreddelete
Qevent::D ragenter
Qevent::D Ragleave
Qevent::D ragmove
Qevent::D ROP
Qevent::enabledchange
Qevent::enter
Qevent::entereditfocus
Qevent::enterwhatsthismode
Qevent::fileopen
Qevent::focusin
Qevent::focusout
Qevent::fontchange
Qevent::grabkeyboard
Qevent::grabmouse
Qevent::graphicsscenecontextmenu
Qevent::graphicsscenedragenter
Qevent::graphicsscenedragleave
Qevent::graphicsscenedragmove
Qevent::graphicsscenedrop
Qevent::graphicsscenehelp
Qevent::graphicsscenehoverenter
Qevent::graphicsscenehoverleave
Qevent::graphicsscenehovermove
Qevent::graphicsscenemousedouble
Qevent::graphicsscenemousemove
Qevent::graphicsscenemousepress
Qevent::graphicsscenemouserelease
Qevent::graphicsscenemove
Qevent::graphicssceneresize
Qevent::graphicsscenewheel
Qevent::hide
Qevent::hidetoparent
Qevent::hoverenter
Qevent::hoverleave
Qevent::hovermove
Qevent::icondrag
Qevent::icontextchange
Qevent::inputmethod
Qevent::keypress
Qevent::keyrelease
Qevent::languagechange
Qevent::layoutdirectionchange
Qevent::layoutrequest
Qevent::leave
Qevent::leaveeditfocus
Qevent::leavewhatsthismode
Qevent::localechange
Qevent::nonclientareamousebuttondblclick
Qevent::nonclientareamousebuttonpress
Qevent::nonclientareamousebuttonrelease
Qevent::nonclientareamousemove
Qevent::macsizechange
qevent::menubarupdated
Qevent::metacall
Qevent::modifiedchange
Qevent::mousebuttondblclick
Qevent::mousebuttonpress
Qevent::mousebuttonrelease
Qevent::mousemove
Qevent::mousetrackingchange
Qevent::move
Qevent::P aint
Qevent::P Alettechange
Qevent::P Arentabouttochange
Qevent::P Arentchange
Qevent::P Latformpanel
Qevent::P olish
Qevent::P olishrequest
Qevent::querywhatsthis
Qevent::requestsoftwareinputpanel
Qevent::resize
Qevent::shortcut
Qevent::shortcutoverride
Qevent::show
Qevent::showtoparent
Qevent::sockact
Qevent::statemachinesignal
qevent::statemachinewrapped
Qevent::statustip
Qevent::stylechange
Qevent::tabletmove
Qevent::tabletpress
Qevent::tabletrelease
Qevent::okrequest
Qevent::tabletenterproximity
Qevent::tabletleaveproximity
Qevent::timer
Qevent::toolbarchange
Qevent::tooltip
Qevent::tooltipchange
Qevent::ungrabkeyboard
Qevent::ungrabmouse
Qevent::updatelater
Qevent::updaterequest
Qevent::whatsthis
Qevent::whatsthisclicked
Qevent::wheel
Qevent::wineventact
Qevent::windowactivate
Qevent::windowblocked
Qevent::windowdeactivate
Qevent::windowiconchange
Qevent::windowstatechange
Qevent::windowtitlechange
Qevent::windowunblocked
Qevent::zorderchange
Qevent::keyboardlayoutchange
Qevent::D Ynamicpropertychange
Qevent::touchbegin
Qevent::touchupdate
Qevent::touchend
Qevent::winidchange
Qevent::gesture
Qevent::gestureoverride

So many types are actually distributed in different inheriting classes to use ...

--------------------------------------------------------

29 Event Inheritance Classes:

Qaccessibleevent
Qactionevent
Qchildevent
Qcloseevent
Qcustomevent
Qdragleaveevent
Qdropevent
Qdynamicpropertychangeevent
Qfileopenevent
Qfocusevent
Qgestureevent
Qgraphicssceneevent
Qhelpevent
Qhideevent
Qhoverevent
Qicondragevent
Qinputevent
Qinputmethodevent
Qmoveevent
Qpaintevent
Qresizeevent
Qshortcutevent
Qshowevent
Qstatemachine::signalevent
Qstatemachine::wrappedevent
Qstatustipevent
Qtimerevent
Qwhatsthisclickedevent
Qwindowstatechangeevent

--------------------------------------------------------

7 Event self-function:

void Accept ()
Voidignore ()
boolisaccepted () const
Voidsetaccepted (BOOL accepted)
Boolspontaneous () const
Typetype () const
Intregistereventtype (int hint =-1)

--------------------------------------------------------

Several key event handlers (in fact, are distributed in the Qobject,qwidget,qcoreapplication Class):

Qobject::event ()
Qobject::installeventfilter ()
Qwidget::event ()
Qcoreapplication::sendevent ()
Qcoreapplication::p ostevent ()
Qcoreapplication::p rocessevents ()

--------------------------------------------------------

Events (sources) are divided into three types: system-generated, QT-generated, programmer-generated

Reference: http://blog.csdn.net/jianchi88/article/details/7017022

--------------------------------------------------------

Add 1, 2 key examples to explain the usage and know-how of events

Qevent collation: 140 types, 29 inheritance classes, 7 functions, 3 event sources

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.