nodeguy/f1e3a1cd.dd23a652.js
2021-11-26 17:46:30 +00:00

1 line
23 KiB
JavaScript

(window.webpackJsonp=window.webpackJsonp||[]).push([[378],{436:function(e,t,a){"use strict";a.r(t),a.d(t,"frontMatter",(function(){return c})),a.d(t,"metadata",(function(){return l})),a.d(t,"rightToc",(function(){return p})),a.d(t,"default",(function(){return i}));var n=a(2),r=a(6),b=(a(0),a(467)),c={id:"qwheelevent",title:"QWheelEvent",sidebar_label:"QWheelEvent"},l={unversionedId:"api/generated/classes/qwheelevent",id:"api/generated/classes/qwheelevent",isDocsHomePage:!1,title:"QWheelEvent",description:"Hierarchy",source:"@site/docs/api/generated/classes/qwheelevent.md",slug:"/api/generated/classes/qwheelevent",permalink:"/docs/api/generated/classes/qwheelevent",editUrl:"https://github.com/nodegui/nodegui/edit/master/website/docs/api/generated/classes/qwheelevent.md",version:"current",sidebar_label:"QWheelEvent",sidebar:"api",previous:{title:"QVariant",permalink:"/docs/api/generated/classes/qvariant"},next:{title:"QWidget",permalink:"/docs/api/generated/classes/qwidget"}},p=[{value:"Hierarchy",id:"hierarchy",children:[]},{value:"Index",id:"index",children:[{value:"Constructors",id:"constructors",children:[]},{value:"Properties",id:"properties",children:[]},{value:"Methods",id:"methods",children:[]}]},{value:"Constructors",id:"constructors-1",children:[{value:"constructor",id:"constructor",children:[]}]},{value:"Properties",id:"properties-1",children:[{value:"native",id:"native",children:[]}]},{value:"Methods",id:"methods-1",children:[{value:"accept",id:"accept",children:[]},{value:"angleDelta",id:"angledelta",children:[]},{value:"buttons",id:"buttons",children:[]},{value:"globalPosition",id:"globalposition",children:[]},{value:"ignore",id:"ignore",children:[]},{value:"inverted",id:"inverted",children:[]},{value:"isAccepted",id:"isaccepted",children:[]},{value:"modifiers",id:"modifiers",children:[]},{value:"phase",id:"phase",children:[]},{value:"pixelDelta",id:"pixeldelta",children:[]},{value:"position",id:"position",children:[]},{value:"setAccepted",id:"setaccepted",children:[]},{value:"spontaneous",id:"spontaneous",children:[]},{value:"timestamp",id:"timestamp",children:[]},{value:"type",id:"type",children:[]}]}],s={rightToc:p};function i(e){var t=e.components,a=Object(r.a)(e,["components"]);return Object(b.b)("wrapper",Object(n.a)({},s,a,{components:t,mdxType:"MDXLayout"}),Object(b.b)("h2",{id:"hierarchy"},"Hierarchy"),Object(b.b)("p",null," \u21b3 ",Object(b.b)("a",Object(n.a)({parentName:"p"},{href:"/docs/api/generated/classes/qinputevent"}),"QInputEvent")),Object(b.b)("p",null," \u21b3 ",Object(b.b)("strong",{parentName:"p"},"QWheelEvent")),Object(b.b)("h2",{id:"index"},"Index"),Object(b.b)("h3",{id:"constructors"},"Constructors"),Object(b.b)("ul",null,Object(b.b)("li",{parentName:"ul"},Object(b.b)("a",Object(n.a)({parentName:"li"},{href:"/docs/api/generated/classes/qwheelevent#constructor"}),"constructor"))),Object(b.b)("h3",{id:"properties"},"Properties"),Object(b.b)("ul",null,Object(b.b)("li",{parentName:"ul"},Object(b.b)("a",Object(n.a)({parentName:"li"},{href:"/docs/api/generated/classes/qwheelevent#native"}),"native"))),Object(b.b)("h3",{id:"methods"},"Methods"),Object(b.b)("ul",null,Object(b.b)("li",{parentName:"ul"},Object(b.b)("a",Object(n.a)({parentName:"li"},{href:"/docs/api/generated/classes/qwheelevent#accept"}),"accept")),Object(b.b)("li",{parentName:"ul"},Object(b.b)("a",Object(n.a)({parentName:"li"},{href:"/docs/api/generated/classes/qwheelevent#angledelta"}),"angleDelta")),Object(b.b)("li",{parentName:"ul"},Object(b.b)("a",Object(n.a)({parentName:"li"},{href:"/docs/api/generated/classes/qwheelevent#buttons"}),"buttons")),Object(b.b)("li",{parentName:"ul"},Object(b.b)("a",Object(n.a)({parentName:"li"},{href:"/docs/api/generated/classes/qwheelevent#globalposition"}),"globalPosition")),Object(b.b)("li",{parentName:"ul"},Object(b.b)("a",Object(n.a)({parentName:"li"},{href:"/docs/api/generated/classes/qwheelevent#ignore"}),"ignore")),Object(b.b)("li",{parentName:"ul"},Object(b.b)("a",Object(n.a)({parentName:"li"},{href:"/docs/api/generated/classes/qwheelevent#inverted"}),"inverted")),Object(b.b)("li",{parentName:"ul"},Object(b.b)("a",Object(n.a)({parentName:"li"},{href:"/docs/api/generated/classes/qwheelevent#isaccepted"}),"isAccepted")),Object(b.b)("li",{parentName:"ul"},Object(b.b)("a",Object(n.a)({parentName:"li"},{href:"/docs/api/generated/classes/qwheelevent#modifiers"}),"modifiers")),Object(b.b)("li",{parentName:"ul"},Object(b.b)("a",Object(n.a)({parentName:"li"},{href:"/docs/api/generated/classes/qwheelevent#phase"}),"phase")),Object(b.b)("li",{parentName:"ul"},Object(b.b)("a",Object(n.a)({parentName:"li"},{href:"/docs/api/generated/classes/qwheelevent#pixeldelta"}),"pixelDelta")),Object(b.b)("li",{parentName:"ul"},Object(b.b)("a",Object(n.a)({parentName:"li"},{href:"/docs/api/generated/classes/qwheelevent#position"}),"position")),Object(b.b)("li",{parentName:"ul"},Object(b.b)("a",Object(n.a)({parentName:"li"},{href:"/docs/api/generated/classes/qwheelevent#setaccepted"}),"setAccepted")),Object(b.b)("li",{parentName:"ul"},Object(b.b)("a",Object(n.a)({parentName:"li"},{href:"/docs/api/generated/classes/qwheelevent#spontaneous"}),"spontaneous")),Object(b.b)("li",{parentName:"ul"},Object(b.b)("a",Object(n.a)({parentName:"li"},{href:"/docs/api/generated/classes/qwheelevent#timestamp"}),"timestamp")),Object(b.b)("li",{parentName:"ul"},Object(b.b)("a",Object(n.a)({parentName:"li"},{href:"/docs/api/generated/classes/qwheelevent#type"}),"type"))),Object(b.b)("h2",{id:"constructors-1"},"Constructors"),Object(b.b)("h3",{id:"constructor"},"constructor"),Object(b.b)("p",null,"+"," ",Object(b.b)("strong",{parentName:"p"},"new QWheelEvent"),"(",Object(b.b)("inlineCode",{parentName:"p"},"event"),": ",Object(b.b)("a",Object(n.a)({parentName:"p"},{href:"/docs/api/generated/globals#nativerawpointer"}),"NativeRawPointer"),'\u2039"QEvent"\u203a): ',Object(b.b)("em",{parentName:"p"},Object(b.b)("a",Object(n.a)({parentName:"em"},{href:"/docs/api/generated/classes/qwheelevent"}),"QWheelEvent"))),Object(b.b)("p",null,Object(b.b)("em",{parentName:"p"},"Overrides ",Object(b.b)("a",Object(n.a)({parentName:"em"},{href:"/docs/api/generated/classes/qevent"}),"QEvent"),".",Object(b.b)("a",Object(n.a)({parentName:"em"},{href:"/docs/api/generated/classes/qevent#constructor"}),"constructor"))),Object(b.b)("p",null,Object(b.b)("strong",{parentName:"p"},"Parameters:")),Object(b.b)("table",null,Object(b.b)("thead",{parentName:"table"},Object(b.b)("tr",{parentName:"thead"},Object(b.b)("th",Object(n.a)({parentName:"tr"},{align:null}),"Name"),Object(b.b)("th",Object(n.a)({parentName:"tr"},{align:null}),"Type"))),Object(b.b)("tbody",{parentName:"table"},Object(b.b)("tr",{parentName:"tbody"},Object(b.b)("td",Object(n.a)({parentName:"tr"},{align:null}),Object(b.b)("inlineCode",{parentName:"td"},"event")),Object(b.b)("td",Object(n.a)({parentName:"tr"},{align:null}),Object(b.b)("a",Object(n.a)({parentName:"td"},{href:"/docs/api/generated/globals#nativerawpointer"}),"NativeRawPointer"),'\u2039"QEvent"\u203a')))),Object(b.b)("p",null,Object(b.b)("strong",{parentName:"p"},"Returns:")," ",Object(b.b)("em",{parentName:"p"},Object(b.b)("a",Object(n.a)({parentName:"em"},{href:"/docs/api/generated/classes/qwheelevent"}),"QWheelEvent"))),Object(b.b)("h2",{id:"properties-1"},"Properties"),Object(b.b)("h3",{id:"native"},"native"),Object(b.b)("p",null,"\u2022 ",Object(b.b)("strong",{parentName:"p"},"native"),": ",Object(b.b)("em",{parentName:"p"},Object(b.b)("a",Object(n.a)({parentName:"em"},{href:"/docs/api/generated/globals#nativeelement"}),"NativeElement"))),Object(b.b)("p",null,Object(b.b)("em",{parentName:"p"},"Inherited from ",Object(b.b)("a",Object(n.a)({parentName:"em"},{href:"/docs/api/generated/classes/qevent"}),"QEvent"),".",Object(b.b)("a",Object(n.a)({parentName:"em"},{href:"/docs/api/generated/classes/qevent#native"}),"native"))),Object(b.b)("h2",{id:"methods-1"},"Methods"),Object(b.b)("h3",{id:"accept"},"accept"),Object(b.b)("p",null,"\u25b8 ",Object(b.b)("strong",{parentName:"p"},"accept"),"(): ",Object(b.b)("em",{parentName:"p"},"void")),Object(b.b)("p",null,Object(b.b)("em",{parentName:"p"},"Inherited from ",Object(b.b)("a",Object(n.a)({parentName:"em"},{href:"/docs/api/generated/classes/qevent"}),"QEvent"),".",Object(b.b)("a",Object(n.a)({parentName:"em"},{href:"/docs/api/generated/classes/qevent#accept"}),"accept"))),Object(b.b)("p",null,"Sets the accept flag of the event object, the equivalent of calling setAccepted(true).\nSetting the accept parameter indicates that the event receiver wants the event. Unwanted events might be propagated to the parent widget"),Object(b.b)("p",null,Object(b.b)("strong",{parentName:"p"},"Returns:")," ",Object(b.b)("em",{parentName:"p"},"void")),Object(b.b)("hr",null),Object(b.b)("h3",{id:"angledelta"},"angleDelta"),Object(b.b)("p",null,"\u25b8 ",Object(b.b)("strong",{parentName:"p"},"angleDelta"),"(): ",Object(b.b)("em",{parentName:"p"},"object")),Object(b.b)("p",null,"Returns the relative amount that the wheel was rotated, in eighths of a degree.\nA positive value indicates that the wheel was rotated forwards away from the user;\na negative value indicates that the wheel was rotated backwards toward the user."),Object(b.b)("p",null,"angleDelta().y() provides the angle through which the common vertical mouse wheel was\nrotated since the previous event.\nangleDelta().x() provides the angle through which the horizontal mouse wheel was\nrotated, if the mouse has a horizontal wheel; otherwise it stays at zero."),Object(b.b)("p",null,"Some mice allow the user to tilt the wheel to perform horizontal scrolling,\nand some touchpads support a horizontal scrolling gesture;\nthat will also appear in angleDelta().x()."),Object(b.b)("p",null,"Most mouse types work in steps of 15 degrees,\nin which case the delta value is a multiple of 120; i.e.,\n120 units * 1/8 = 15 degrees."),Object(b.b)("p",null,"However, some mice have finer-resolution wheels and\nsend delta values that are less than 120 units (less than 15 degrees).\nTo support this possibility, you can either cumulatively add the delta\nvalues from events until the value of 120 is reached,\nthen scroll the widget, or you can partially scroll the widget in\nresponse to each wheel event."),Object(b.b)("p",null,"But to provide a more native feel, you should prefer pixelDelta()\non platforms where it's available."),Object(b.b)("p",null,Object(b.b)("strong",{parentName:"p"},"Returns:")," ",Object(b.b)("em",{parentName:"p"},"object")),Object(b.b)("ul",null,Object(b.b)("li",{parentName:"ul"},Object(b.b)("p",{parentName:"li"},Object(b.b)("strong",{parentName:"p"},"x"),": ",Object(b.b)("em",{parentName:"p"},"number"))),Object(b.b)("li",{parentName:"ul"},Object(b.b)("p",{parentName:"li"},Object(b.b)("strong",{parentName:"p"},"y"),": ",Object(b.b)("em",{parentName:"p"},"number")))),Object(b.b)("hr",null),Object(b.b)("h3",{id:"buttons"},"buttons"),Object(b.b)("p",null,"\u25b8 ",Object(b.b)("strong",{parentName:"p"},"buttons"),"(): ",Object(b.b)("em",{parentName:"p"},"number")),Object(b.b)("p",null,Object(b.b)("strong",{parentName:"p"},"Returns:")," ",Object(b.b)("em",{parentName:"p"},"number")),Object(b.b)("hr",null),Object(b.b)("h3",{id:"globalposition"},"globalPosition"),Object(b.b)("p",null,"\u25b8 ",Object(b.b)("strong",{parentName:"p"},"globalPosition"),"(): ",Object(b.b)("em",{parentName:"p"},"object")),Object(b.b)("p",null,"Returns the global position of the mouse pointer at the time of\nthe event. This is important on asynchronous window systems such\nas X11; whenever you move your widgets around in response to mouse\nevents, globalPosition() can differ a lot from the current cursor\nposition returned by QCursor::pos()."),Object(b.b)("p",null,Object(b.b)("strong",{parentName:"p"},"Returns:")," ",Object(b.b)("em",{parentName:"p"},"object")),Object(b.b)("ul",null,Object(b.b)("li",{parentName:"ul"},Object(b.b)("p",{parentName:"li"},Object(b.b)("strong",{parentName:"p"},"x"),": ",Object(b.b)("em",{parentName:"p"},"number"))),Object(b.b)("li",{parentName:"ul"},Object(b.b)("p",{parentName:"li"},Object(b.b)("strong",{parentName:"p"},"y"),": ",Object(b.b)("em",{parentName:"p"},"number")))),Object(b.b)("hr",null),Object(b.b)("h3",{id:"ignore"},"ignore"),Object(b.b)("p",null,"\u25b8 ",Object(b.b)("strong",{parentName:"p"},"ignore"),"(): ",Object(b.b)("em",{parentName:"p"},"void")),Object(b.b)("p",null,Object(b.b)("em",{parentName:"p"},"Inherited from ",Object(b.b)("a",Object(n.a)({parentName:"em"},{href:"/docs/api/generated/classes/qevent"}),"QEvent"),".",Object(b.b)("a",Object(n.a)({parentName:"em"},{href:"/docs/api/generated/classes/qevent#ignore"}),"ignore"))),Object(b.b)("p",null,"Clears the accept flag parameter of the event object, the equivalent of calling setAccepted(false).\nClearing the accept parameter indicates that the event receiver does not want the event.\nUnwanted events might be propagated to the parent widget."),Object(b.b)("p",null,Object(b.b)("strong",{parentName:"p"},"Returns:")," ",Object(b.b)("em",{parentName:"p"},"void")),Object(b.b)("hr",null),Object(b.b)("h3",{id:"inverted"},"inverted"),Object(b.b)("p",null,"\u25b8 ",Object(b.b)("strong",{parentName:"p"},"inverted"),"(): ",Object(b.b)("em",{parentName:"p"},"boolean")),Object(b.b)("p",null,"Returns whether the delta values delivered with the event are inverted"),Object(b.b)("p",null,Object(b.b)("strong",{parentName:"p"},"Returns:")," ",Object(b.b)("em",{parentName:"p"},"boolean")),Object(b.b)("hr",null),Object(b.b)("h3",{id:"isaccepted"},"isAccepted"),Object(b.b)("p",null,"\u25b8 ",Object(b.b)("strong",{parentName:"p"},"isAccepted"),"(): ",Object(b.b)("em",{parentName:"p"},"boolean")),Object(b.b)("p",null,Object(b.b)("em",{parentName:"p"},"Inherited from ",Object(b.b)("a",Object(n.a)({parentName:"em"},{href:"/docs/api/generated/classes/qevent"}),"QEvent"),".",Object(b.b)("a",Object(n.a)({parentName:"em"},{href:"/docs/api/generated/classes/qevent#isaccepted"}),"isAccepted"))),Object(b.b)("p",null,Object(b.b)("strong",{parentName:"p"},"Returns:")," ",Object(b.b)("em",{parentName:"p"},"boolean")),Object(b.b)("hr",null),Object(b.b)("h3",{id:"modifiers"},"modifiers"),Object(b.b)("p",null,"\u25b8 ",Object(b.b)("strong",{parentName:"p"},"modifiers"),"(): ",Object(b.b)("em",{parentName:"p"},Object(b.b)("a",Object(n.a)({parentName:"em"},{href:"/docs/api/generated/enums/keyboardmodifier"}),"KeyboardModifier"))),Object(b.b)("p",null,Object(b.b)("em",{parentName:"p"},"Inherited from ",Object(b.b)("a",Object(n.a)({parentName:"em"},{href:"/docs/api/generated/classes/qinputevent"}),"QInputEvent"),".",Object(b.b)("a",Object(n.a)({parentName:"em"},{href:"/docs/api/generated/classes/qinputevent#modifiers"}),"modifiers"))),Object(b.b)("p",null,Object(b.b)("strong",{parentName:"p"},"Returns:")," ",Object(b.b)("em",{parentName:"p"},Object(b.b)("a",Object(n.a)({parentName:"em"},{href:"/docs/api/generated/enums/keyboardmodifier"}),"KeyboardModifier"))),Object(b.b)("hr",null),Object(b.b)("h3",{id:"phase"},"phase"),Object(b.b)("p",null,"\u25b8 ",Object(b.b)("strong",{parentName:"p"},"phase"),"(): ",Object(b.b)("em",{parentName:"p"},Object(b.b)("a",Object(n.a)({parentName:"em"},{href:"/docs/api/generated/enums/scrollphase"}),"ScrollPhase"))),Object(b.b)("p",null,Object(b.b)("strong",{parentName:"p"},"Returns:")," ",Object(b.b)("em",{parentName:"p"},Object(b.b)("a",Object(n.a)({parentName:"em"},{href:"/docs/api/generated/enums/scrollphase"}),"ScrollPhase"))),Object(b.b)("hr",null),Object(b.b)("h3",{id:"pixeldelta"},"pixelDelta"),Object(b.b)("p",null,"\u25b8 ",Object(b.b)("strong",{parentName:"p"},"pixelDelta"),"(): ",Object(b.b)("em",{parentName:"p"},"object")),Object(b.b)("p",null,"Returns the scrolling distance in pixels on screen.\nThis value is provided on platforms that support\nhigh-resolution pixel-based delta values, such as macOS.\nThe value should be used directly to scroll content on screen"),Object(b.b)("p",null,"Note:On X11 this value is driver specific and unreliable, use angleDelta() instead"),Object(b.b)("p",null,Object(b.b)("strong",{parentName:"p"},"Returns:")," ",Object(b.b)("em",{parentName:"p"},"object")),Object(b.b)("ul",null,Object(b.b)("li",{parentName:"ul"},Object(b.b)("p",{parentName:"li"},Object(b.b)("strong",{parentName:"p"},"x"),": ",Object(b.b)("em",{parentName:"p"},"number"))),Object(b.b)("li",{parentName:"ul"},Object(b.b)("p",{parentName:"li"},Object(b.b)("strong",{parentName:"p"},"y"),": ",Object(b.b)("em",{parentName:"p"},"number")))),Object(b.b)("hr",null),Object(b.b)("h3",{id:"position"},"position"),Object(b.b)("p",null,"\u25b8 ",Object(b.b)("strong",{parentName:"p"},"position"),"(): ",Object(b.b)("em",{parentName:"p"},"object")),Object(b.b)("p",null,"Returns the position of the mouse cursor relative to the widget that received the event.\nIf you move your widgets around in response to mouse events, use globalPosition() instead of this function.\nThis function was introduced in Qt 5.14"),Object(b.b)("p",null,Object(b.b)("strong",{parentName:"p"},"Returns:")," ",Object(b.b)("em",{parentName:"p"},"object")),Object(b.b)("ul",null,Object(b.b)("li",{parentName:"ul"},Object(b.b)("p",{parentName:"li"},Object(b.b)("strong",{parentName:"p"},"x"),": ",Object(b.b)("em",{parentName:"p"},"number"))),Object(b.b)("li",{parentName:"ul"},Object(b.b)("p",{parentName:"li"},Object(b.b)("strong",{parentName:"p"},"y"),": ",Object(b.b)("em",{parentName:"p"},"number")))),Object(b.b)("hr",null),Object(b.b)("h3",{id:"setaccepted"},"setAccepted"),Object(b.b)("p",null,"\u25b8 ",Object(b.b)("strong",{parentName:"p"},"setAccepted"),"(",Object(b.b)("inlineCode",{parentName:"p"},"accepted"),": boolean): ",Object(b.b)("em",{parentName:"p"},"void")),Object(b.b)("p",null,Object(b.b)("em",{parentName:"p"},"Inherited from ",Object(b.b)("a",Object(n.a)({parentName:"em"},{href:"/docs/api/generated/classes/qevent"}),"QEvent"),".",Object(b.b)("a",Object(n.a)({parentName:"em"},{href:"/docs/api/generated/classes/qevent#setaccepted"}),"setAccepted"))),Object(b.b)("p",null,"Sets the accept flag of the event object"),Object(b.b)("p",null,Object(b.b)("strong",{parentName:"p"},"Parameters:")),Object(b.b)("table",null,Object(b.b)("thead",{parentName:"table"},Object(b.b)("tr",{parentName:"thead"},Object(b.b)("th",Object(n.a)({parentName:"tr"},{align:null}),"Name"),Object(b.b)("th",Object(n.a)({parentName:"tr"},{align:null}),"Type"))),Object(b.b)("tbody",{parentName:"table"},Object(b.b)("tr",{parentName:"tbody"},Object(b.b)("td",Object(n.a)({parentName:"tr"},{align:null}),Object(b.b)("inlineCode",{parentName:"td"},"accepted")),Object(b.b)("td",Object(n.a)({parentName:"tr"},{align:null}),"boolean")))),Object(b.b)("p",null,Object(b.b)("strong",{parentName:"p"},"Returns:")," ",Object(b.b)("em",{parentName:"p"},"void")),Object(b.b)("hr",null),Object(b.b)("h3",{id:"spontaneous"},"spontaneous"),Object(b.b)("p",null,"\u25b8 ",Object(b.b)("strong",{parentName:"p"},"spontaneous"),"(): ",Object(b.b)("em",{parentName:"p"},"boolean")),Object(b.b)("p",null,Object(b.b)("em",{parentName:"p"},"Inherited from ",Object(b.b)("a",Object(n.a)({parentName:"em"},{href:"/docs/api/generated/classes/qevent"}),"QEvent"),".",Object(b.b)("a",Object(n.a)({parentName:"em"},{href:"/docs/api/generated/classes/qevent#spontaneous"}),"spontaneous"))),Object(b.b)("p",null,"Returns true if the event originated outside the application (a system event); otherwise returns false."),Object(b.b)("p",null,"The return value of this function is not defined for paint events."),Object(b.b)("p",null,Object(b.b)("strong",{parentName:"p"},"Returns:")," ",Object(b.b)("em",{parentName:"p"},"boolean")),Object(b.b)("hr",null),Object(b.b)("h3",{id:"timestamp"},"timestamp"),Object(b.b)("p",null,"\u25b8 ",Object(b.b)("strong",{parentName:"p"},"timestamp"),"(): ",Object(b.b)("em",{parentName:"p"},"number")),Object(b.b)("p",null,Object(b.b)("em",{parentName:"p"},"Inherited from ",Object(b.b)("a",Object(n.a)({parentName:"em"},{href:"/docs/api/generated/classes/qinputevent"}),"QInputEvent"),".",Object(b.b)("a",Object(n.a)({parentName:"em"},{href:"/docs/api/generated/classes/qinputevent#timestamp"}),"timestamp"))),Object(b.b)("p",null,Object(b.b)("strong",{parentName:"p"},"Returns:")," ",Object(b.b)("em",{parentName:"p"},"number")),Object(b.b)("hr",null),Object(b.b)("h3",{id:"type"},"type"),Object(b.b)("p",null,"\u25b8 ",Object(b.b)("strong",{parentName:"p"},"type"),"(): ",Object(b.b)("em",{parentName:"p"},"number")),Object(b.b)("p",null,Object(b.b)("em",{parentName:"p"},"Inherited from ",Object(b.b)("a",Object(n.a)({parentName:"em"},{href:"/docs/api/generated/classes/qevent"}),"QEvent"),".",Object(b.b)("a",Object(n.a)({parentName:"em"},{href:"/docs/api/generated/classes/qevent#type"}),"type"))),Object(b.b)("p",null,"Returns the event type"),Object(b.b)("p",null,Object(b.b)("strong",{parentName:"p"},"Returns:")," ",Object(b.b)("em",{parentName:"p"},"number")),Object(b.b)("p",null,"This is QEvent::Type"))}i.isMDXComponent=!0},467:function(e,t,a){"use strict";a.d(t,"a",(function(){return o})),a.d(t,"b",(function(){return d}));var n=a(0),r=a.n(n);function b(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function c(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,n)}return a}function l(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?c(Object(a),!0).forEach((function(t){b(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):c(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}function p(e,t){if(null==e)return{};var a,n,r=function(e,t){if(null==e)return{};var a,n,r={},b=Object.keys(e);for(n=0;n<b.length;n++)a=b[n],t.indexOf(a)>=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(e);for(n=0;n<b.length;n++)a=b[n],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}var s=r.a.createContext({}),i=function(e){var t=r.a.useContext(s),a=t;return e&&(a="function"==typeof e?e(t):l(l({},t),e)),a},o=function(e){var t=i(e.components);return r.a.createElement(s.Provider,{value:t},e.children)},m={inlineCode:"code",wrapper:function(e){var t=e.children;return r.a.createElement(r.a.Fragment,{},t)}},O=r.a.forwardRef((function(e,t){var a=e.components,n=e.mdxType,b=e.originalType,c=e.parentName,s=p(e,["components","mdxType","originalType","parentName"]),o=i(a),O=n,d=o["".concat(c,".").concat(O)]||o[O]||m[O]||b;return a?r.a.createElement(d,l(l({ref:t},s),{},{components:a})):r.a.createElement(d,l({ref:t},s))}));function d(e,t){var a=arguments,n=t&&t.mdxType;if("string"==typeof e||n){var b=a.length,c=new Array(b);c[0]=O;var l={};for(var p in t)hasOwnProperty.call(t,p)&&(l[p]=t[p]);l.originalType=e,l.mdxType="string"==typeof e?e:n,c[1]=l;for(var s=2;s<b;s++)c[s]=a[s];return r.a.createElement.apply(null,c)}return r.a.createElement.apply(null,a)}O.displayName="MDXCreateElement"}}]);