[][src]Struct qt_core::q_event::Type

#[repr(transparent)]
pub struct Type(_);

This enum type defines the valid event types in Qt. The event types and the specialized classes for each type are as follows:

C++ enum: QEvent::Type.

C++ documentation:

This enum type defines the valid event types in Qt. The event types and the specialized classes for each type are as follows:

User events should have values between User and MaxUser:

For convenience, you can use the registerEventType() function to register and reserve a custom event type for your application. Doing so will allow you to avoid accidentally re-using a custom event type already in use elsewhere in your application.

Methods

impl Type[src]

pub fn to_int(&self) -> c_int[src]

impl Type[src]

pub const None: Type[src]

Not an event. (C++ enum variant: None = 0)

pub const Timer: Type[src]

Regular timer events (QTimerEvent). (C++ enum variant: Timer = 1)

pub const MouseButtonPress: Type[src]

Mouse press (QMouseEvent). (C++ enum variant: MouseButtonPress = 2)

pub const MouseButtonRelease: Type[src]

Mouse release (QMouseEvent). (C++ enum variant: MouseButtonRelease = 3)

pub const MouseButtonDblClick: Type[src]

Mouse press again (QMouseEvent). (C++ enum variant: MouseButtonDblClick = 4)

pub const MouseMove: Type[src]

Mouse move (QMouseEvent). (C++ enum variant: MouseMove = 5)

pub const KeyPress: Type[src]

Key press (QKeyEvent). (C++ enum variant: KeyPress = 6)

pub const KeyRelease: Type[src]

Key release (QKeyEvent). (C++ enum variant: KeyRelease = 7)

pub const FocusIn: Type[src]

Widget or Window gains keyboard focus (QFocusEvent). (C++ enum variant: FocusIn = 8)

pub const FocusOut: Type[src]

Widget or Window loses keyboard focus (QFocusEvent). (C++ enum variant: FocusOut = 9)

pub const FocusAboutToChange: Type[src]

Widget or Window focus is about to change (QFocusEvent) (C++ enum variant: FocusAboutToChange = 23)

pub const Enter: Type[src]

Mouse enters widget's boundaries (QEnterEvent). (C++ enum variant: Enter = 10)

pub const Leave: Type[src]

Mouse leaves widget's boundaries. (C++ enum variant: Leave = 11)

pub const Paint: Type[src]

Screen update necessary (QPaintEvent). (C++ enum variant: Paint = 12)

pub const Move: Type[src]

Widget's position changed (QMoveEvent). (C++ enum variant: Move = 13)

pub const Resize: Type[src]

Widget's size changed (QResizeEvent). (C++ enum variant: Resize = 14)

pub const Create: Type[src]

C++ enum variant: Create = 15

pub const Destroy: Type[src]

C++ enum variant: Destroy = 16

pub const Show: Type[src]

Widget was shown on screen (QShowEvent). (C++ enum variant: Show = 17)

pub const Hide: Type[src]

Widget was hidden (QHideEvent). (C++ enum variant: Hide = 18)

pub const Close: Type[src]

Widget was closed (QCloseEvent). (C++ enum variant: Close = 19)

pub const Quit: Type[src]

C++ enum variant: Quit = 20

pub const ParentChange: Type[src]

The widget parent has changed. (C++ enum variant: ParentChange = 21)

pub const ParentAboutToChange: Type[src]

The widget parent is about to change. (C++ enum variant: ParentAboutToChange = 131)

pub const ThreadChange: Type[src]

The object is moved to another thread. This is the last event sent to this object in the previous thread. See QObject::moveToThread(). (C++ enum variant: ThreadChange = 22)

pub const WindowActivate: Type[src]

Window was activated. (C++ enum variant: WindowActivate = 24)

pub const WindowDeactivate: Type[src]

Window was deactivated. (C++ enum variant: WindowDeactivate = 25)

pub const ShowToParent: Type[src]

A child widget has been shown. (C++ enum variant: ShowToParent = 26)

pub const HideToParent: Type[src]

A child widget has been hidden. (C++ enum variant: HideToParent = 27)

pub const Wheel: Type[src]

Mouse wheel rolled (QWheelEvent). (C++ enum variant: Wheel = 31)

pub const WindowTitleChange: Type[src]

The window title has changed. (C++ enum variant: WindowTitleChange = 33)

pub const WindowIconChange: Type[src]

The window's icon has changed. (C++ enum variant: WindowIconChange = 34)

pub const ApplicationWindowIconChange: Type[src]

The application's icon has changed. (C++ enum variant: ApplicationWindowIconChange = 35)

pub const ApplicationFontChange: Type[src]

The default application font has changed. (C++ enum variant: ApplicationFontChange = 36)

pub const ApplicationLayoutDirectionChange: Type[src]

The default application layout direction has changed. (C++ enum variant: ApplicationLayoutDirectionChange = 37)

pub const ApplicationPaletteChange: Type[src]

The default application palette has changed. (C++ enum variant: ApplicationPaletteChange = 38)

pub const PaletteChange: Type[src]

Palette of the widget changed. (C++ enum variant: PaletteChange = 39)

pub const Clipboard: Type[src]

The clipboard contents have changed. (C++ enum variant: Clipboard = 40)

pub const Speech: Type[src]

C++ enum variant: Speech = 42

pub const MetaCall: Type[src]

An asynchronous method invocation via QMetaObject::invokeMethod(). (C++ enum variant: MetaCall = 43)

pub const SockAct: Type[src]

Socket activated, used to implement QSocketNotifier. (C++ enum variant: SockAct = 50)

pub const WinEventAct: Type[src]

A Windows-specific activation event has occurred. (C++ enum variant: WinEventAct = 132)

pub const DeferredDelete: Type[src]

The object will be deleted after it has cleaned up (QDeferredDeleteEvent) (C++ enum variant: DeferredDelete = 52)

pub const DragEnter: Type[src]

The cursor enters a widget during a drag and drop operation (QDragEnterEvent). (C++ enum variant: DragEnter = 60)

pub const DragMove: Type[src]

A drag and drop operation is in progress (QDragMoveEvent). (C++ enum variant: DragMove = 61)

pub const DragLeave: Type[src]

The cursor leaves a widget during a drag and drop operation (QDragLeaveEvent). (C++ enum variant: DragLeave = 62)

pub const Drop: Type[src]

A drag and drop operation is completed (QDropEvent). (C++ enum variant: Drop = 63)

pub const DragResponse: Type[src]

C++ enum variant: DragResponse = 64

pub const ChildAdded: Type[src]

An object gets a child (QChildEvent). (C++ enum variant: ChildAdded = 68)

pub const ChildPolished: Type[src]

A widget child gets polished (QChildEvent). (C++ enum variant: ChildPolished = 69)

pub const ChildRemoved: Type[src]

An object loses a child (QChildEvent). (C++ enum variant: ChildRemoved = 71)

pub const ShowWindowRequest: Type[src]

C++ enum variant: ShowWindowRequest = 73

pub const PolishRequest: Type[src]

The widget should be polished. (C++ enum variant: PolishRequest = 74)

pub const Polish: Type[src]

The widget is polished. (C++ enum variant: Polish = 75)

pub const LayoutRequest: Type[src]

Widget layout needs to be redone. (C++ enum variant: LayoutRequest = 76)

pub const UpdateRequest: Type[src]

The widget should be repainted. (C++ enum variant: UpdateRequest = 77)

pub const UpdateLater: Type[src]

The widget should be queued to be repainted at a later time. (C++ enum variant: UpdateLater = 78)

pub const EmbeddingControl: Type[src]

C++ enum variant: EmbeddingControl = 79

pub const ActivateControl: Type[src]

C++ enum variant: ActivateControl = 80

pub const DeactivateControl: Type[src]

C++ enum variant: DeactivateControl = 81

pub const ContextMenu: Type[src]

Context popup menu (QContextMenuEvent). (C++ enum variant: ContextMenu = 82)

pub const InputMethod: Type[src]

An input method is being used (QInputMethodEvent). (C++ enum variant: InputMethod = 83)

pub const TabletMove: Type[src]

Wacom tablet move (QTabletEvent). (C++ enum variant: TabletMove = 87)

pub const LocaleChange: Type[src]

The system locale has changed. (C++ enum variant: LocaleChange = 88)

pub const LanguageChange: Type[src]

The application translation changed. (C++ enum variant: LanguageChange = 89)

pub const LayoutDirectionChange: Type[src]

The direction of layouts changed. (C++ enum variant: LayoutDirectionChange = 90)

pub const Style: Type[src]

C++ enum variant: Style = 91

pub const TabletPress: Type[src]

Wacom tablet press (QTabletEvent). (C++ enum variant: TabletPress = 92)

pub const TabletRelease: Type[src]

Wacom tablet release (QTabletEvent). (C++ enum variant: TabletRelease = 93)

pub const OkRequest: Type[src]

C++ enum variant: OkRequest = 94

pub const HelpRequest: Type[src]

C++ enum variant: HelpRequest = 95

pub const IconDrag: Type[src]

The main icon of a window has been dragged away (QIconDragEvent). (C++ enum variant: IconDrag = 96)

pub const FontChange: Type[src]

Widget's font has changed. (C++ enum variant: FontChange = 97)

pub const EnabledChange: Type[src]

Widget's enabled state has changed. (C++ enum variant: EnabledChange = 98)

pub const ActivationChange: Type[src]

A widget's top-level window activation state has changed. (C++ enum variant: ActivationChange = 99)

pub const StyleChange: Type[src]

Widget's style has been changed. (C++ enum variant: StyleChange = 100)

pub const IconTextChange: Type[src]

Widget's icon text has been changed. (Deprecated) (C++ enum variant: IconTextChange = 101)

pub const ModifiedChange: Type[src]

Widgets modification state has been changed. (C++ enum variant: ModifiedChange = 102)

pub const MouseTrackingChange: Type[src]

The mouse tracking state has changed. (C++ enum variant: MouseTrackingChange = 109)

pub const WindowBlocked: Type[src]

The window is blocked by a modal dialog. (C++ enum variant: WindowBlocked = 103)

pub const WindowUnblocked: Type[src]

The window is unblocked after a modal dialog exited. (C++ enum variant: WindowUnblocked = 104)

pub const WindowStateChange: Type[src]

The window's state (minimized, maximized or full-screen) has changed (QWindowStateChangeEvent). (C++ enum variant: WindowStateChange = 105)

pub const ReadOnlyChange: Type[src]

Widget's read-only state has changed (since Qt 5.4). (C++ enum variant: ReadOnlyChange = 106)

pub const ToolTip: Type[src]

A tooltip was requested (QHelpEvent). (C++ enum variant: ToolTip = 110)

pub const WhatsThis: Type[src]

The widget should reveal "What's This?" help (QHelpEvent). (C++ enum variant: WhatsThis = 111)

pub const StatusTip: Type[src]

A status tip is requested (QStatusTipEvent). (C++ enum variant: StatusTip = 112)

pub const ActionChanged: Type[src]

An action has been changed (QActionEvent). (C++ enum variant: ActionChanged = 113)

pub const ActionAdded: Type[src]

A new action has been added (QActionEvent). (C++ enum variant: ActionAdded = 114)

pub const ActionRemoved: Type[src]

An action has been removed (QActionEvent). (C++ enum variant: ActionRemoved = 115)

pub const FileOpen: Type[src]

File open request (QFileOpenEvent). (C++ enum variant: FileOpen = 116)

pub const Shortcut: Type[src]

Key press in child for shortcut key handling (QShortcutEvent). (C++ enum variant: Shortcut = 117)

pub const ShortcutOverride: Type[src]

Key press in child, for overriding shortcut key handling (QKeyEvent). (C++ enum variant: ShortcutOverride = 51)

pub const WhatsThisClicked: Type[src]

A link in a widget's "What's This?" help was clicked. (C++ enum variant: WhatsThisClicked = 118)

pub const ToolBarChange: Type[src]

The toolbar button is toggled on macOS. (C++ enum variant: ToolBarChange = 120)

pub const ApplicationActivate: Type[src]

This enum has been deprecated. Use ApplicationStateChange instead. (C++ enum variant: ApplicationActivate = 121)

pub const ApplicationActivated: Type[src]

This enum has been deprecated. Use ApplicationStateChange instead. (C++ enum variant: ApplicationActivated = 121)

pub const ApplicationDeactivate: Type[src]

This enum has been deprecated. Use ApplicationStateChange instead. (C++ enum variant: ApplicationDeactivate = 122)

pub const ApplicationDeactivated: Type[src]

C++ enum variant: ApplicationDeactivated = 122

pub const QueryWhatsThis: Type[src]

The widget should accept the event if it has "What's This?" help. (C++ enum variant: QueryWhatsThis = 123)

pub const EnterWhatsThisMode: Type[src]

Send to toplevel widgets when the application enters "What's This?" mode. (C++ enum variant: EnterWhatsThisMode = 124)

pub const LeaveWhatsThisMode: Type[src]

Send to toplevel widgets when the application leaves "What's This?" mode. (C++ enum variant: LeaveWhatsThisMode = 125)

pub const ZOrderChange: Type[src]

The widget's z-order has changed. This event is never sent to top level windows. (C++ enum variant: ZOrderChange = 126)

pub const HoverEnter: Type[src]

The mouse cursor enters a hover widget (QHoverEvent). (C++ enum variant: HoverEnter = 127)

pub const HoverLeave: Type[src]

The mouse cursor leaves a hover widget (QHoverEvent). (C++ enum variant: HoverLeave = 128)

pub const HoverMove: Type[src]

The mouse cursor moves inside a hover widget (QHoverEvent). (C++ enum variant: HoverMove = 129)

pub const AcceptDropsChange: Type[src]

C++ enum variant: AcceptDropsChange = 152

pub const ZeroTimerEvent: Type[src]

C++ enum variant: ZeroTimerEvent = 154

pub const GraphicsSceneMouseMove: Type[src]

Move mouse in a graphics scene (QGraphicsSceneMouseEvent). (C++ enum variant: GraphicsSceneMouseMove = 155)

pub const GraphicsSceneMousePress: Type[src]

Mouse press in a graphics scene (QGraphicsSceneMouseEvent). (C++ enum variant: GraphicsSceneMousePress = 156)

pub const GraphicsSceneMouseRelease: Type[src]

Mouse release in a graphics scene (QGraphicsSceneMouseEvent). (C++ enum variant: GraphicsSceneMouseRelease = 157)

pub const GraphicsSceneMouseDoubleClick: Type[src]

Mouse press again (double click) in a graphics scene (QGraphicsSceneMouseEvent). (C++ enum variant: GraphicsSceneMouseDoubleClick = 158)

pub const GraphicsSceneContextMenu: Type[src]

Context popup menu over a graphics scene (QGraphicsSceneContextMenuEvent). (C++ enum variant: GraphicsSceneContextMenu = 159)

pub const GraphicsSceneHoverEnter: Type[src]

The mouse cursor enters a hover item in a graphics scene (QGraphicsSceneHoverEvent). (C++ enum variant: GraphicsSceneHoverEnter = 160)

pub const GraphicsSceneHoverMove: Type[src]

The mouse cursor moves inside a hover item in a graphics scene (QGraphicsSceneHoverEvent). (C++ enum variant: GraphicsSceneHoverMove = 161)

pub const GraphicsSceneHoverLeave: Type[src]

The mouse cursor leaves a hover item in a graphics scene (QGraphicsSceneHoverEvent). (C++ enum variant: GraphicsSceneHoverLeave = 162)

pub const GraphicsSceneHelp: Type[src]

The user requests help for a graphics scene (QHelpEvent). (C++ enum variant: GraphicsSceneHelp = 163)

pub const GraphicsSceneDragEnter: Type[src]

The cursor enters a graphics scene during a drag and drop operation (QGraphicsSceneDragDropEvent). (C++ enum variant: GraphicsSceneDragEnter = 164)

pub const GraphicsSceneDragMove: Type[src]

A drag and drop operation is in progress over a scene (QGraphicsSceneDragDropEvent). (C++ enum variant: GraphicsSceneDragMove = 165)

pub const GraphicsSceneDragLeave: Type[src]

The cursor leaves a graphics scene during a drag and drop operation (QGraphicsSceneDragDropEvent). (C++ enum variant: GraphicsSceneDragLeave = 166)

pub const GraphicsSceneDrop: Type[src]

A drag and drop operation is completed over a scene (QGraphicsSceneDragDropEvent). (C++ enum variant: GraphicsSceneDrop = 167)

pub const GraphicsSceneWheel: Type[src]

Mouse wheel rolled in a graphics scene (QGraphicsSceneWheelEvent). (C++ enum variant: GraphicsSceneWheel = 168)

pub const KeyboardLayoutChange: Type[src]

The keyboard layout has changed. (C++ enum variant: KeyboardLayoutChange = 169)

pub const DynamicPropertyChange: Type[src]

A dynamic property was added, changed, or removed from the object. (C++ enum variant: DynamicPropertyChange = 170)

pub const TabletEnterProximity: Type[src]

Wacom tablet enter proximity event (QTabletEvent), sent to QApplication. (C++ enum variant: TabletEnterProximity = 171)

pub const TabletLeaveProximity: Type[src]

Wacom tablet leave proximity event (QTabletEvent), sent to QApplication. (C++ enum variant: TabletLeaveProximity = 172)

pub const NonClientAreaMouseMove: Type[src]

A mouse move occurred outside the client area (QMouseEvent). (C++ enum variant: NonClientAreaMouseMove = 173)

pub const NonClientAreaMouseButtonPress: Type[src]

A mouse button press occurred outside the client area (QMouseEvent). (C++ enum variant: NonClientAreaMouseButtonPress = 174)

pub const NonClientAreaMouseButtonRelease: Type[src]

A mouse button release occurred outside the client area (QMouseEvent). (C++ enum variant: NonClientAreaMouseButtonRelease = 175)

pub const NonClientAreaMouseButtonDblClick: Type[src]

A mouse double click occurred outside the client area (QMouseEvent). (C++ enum variant: NonClientAreaMouseButtonDblClick = 176)

pub const MacSizeChange: Type[src]

The user changed his widget sizes (macOS only). (C++ enum variant: MacSizeChange = 177)

pub const ContentsRectChange: Type[src]

The margins of the widget's content rect changed. (C++ enum variant: ContentsRectChange = 178)

pub const MacGLWindowChange: Type[src]

C++ enum variant: MacGLWindowChange = 179

pub const FutureCallOut: Type[src]

C++ enum variant: FutureCallOut = 180

pub const GraphicsSceneResize: Type[src]

Widget was resized (QGraphicsSceneResizeEvent). (C++ enum variant: GraphicsSceneResize = 181)

pub const GraphicsSceneMove: Type[src]

Widget was moved (QGraphicsSceneMoveEvent). (C++ enum variant: GraphicsSceneMove = 182)

pub const CursorChange: Type[src]

The widget's cursor has changed. (C++ enum variant: CursorChange = 183)

pub const ToolTipChange: Type[src]

The widget's tooltip has changed. (C++ enum variant: ToolTipChange = 184)

pub const NetworkReplyUpdated: Type[src]

C++ enum variant: NetworkReplyUpdated = 185

pub const GrabMouse: Type[src]

Item gains mouse grab (QGraphicsItem only). (C++ enum variant: GrabMouse = 186)

pub const UngrabMouse: Type[src]

Item loses mouse grab (QGraphicsItem, QQuickItem). (C++ enum variant: UngrabMouse = 187)

pub const GrabKeyboard: Type[src]

Item gains keyboard grab (QGraphicsItem only). (C++ enum variant: GrabKeyboard = 188)

pub const UngrabKeyboard: Type[src]

Item loses keyboard grab (QGraphicsItem only). (C++ enum variant: UngrabKeyboard = 189)

pub const MacGLClearDrawable: Type[src]

C++ enum variant: MacGLClearDrawable = 191

pub const StateMachineSignal: Type[src]

A signal delivered to a state machine (QStateMachine::SignalEvent). (C++ enum variant: StateMachineSignal = 192)

pub const StateMachineWrapped: Type[src]

The event is a wrapper for, i.e., contains, another event (QStateMachine::WrappedEvent). (C++ enum variant: StateMachineWrapped = 193)

pub const TouchBegin: Type[src]

Beginning of a sequence of touch-screen or track-pad events (QTouchEvent). (C++ enum variant: TouchBegin = 194)

pub const TouchUpdate: Type[src]

Touch-screen event (QTouchEvent). (C++ enum variant: TouchUpdate = 195)

pub const TouchEnd: Type[src]

End of touch-event sequence (QTouchEvent). (C++ enum variant: TouchEnd = 196)

pub const NativeGesture: Type[src]

The system has detected a gesture (QNativeGestureEvent). (C++ enum variant: NativeGesture = 197)

pub const RequestSoftwareInputPanel: Type[src]

A widget wants to open a software input panel (SIP). (C++ enum variant: RequestSoftwareInputPanel = 199)

pub const CloseSoftwareInputPanel: Type[src]

A widget wants to close the software input panel (SIP). (C++ enum variant: CloseSoftwareInputPanel = 200)

pub const WinIdChange: Type[src]

The window system identifer for this native widget has changed. (C++ enum variant: WinIdChange = 203)

pub const Gesture: Type[src]

A gesture was triggered (QGestureEvent). (C++ enum variant: Gesture = 198)

pub const GestureOverride: Type[src]

A gesture override was triggered (QGestureEvent). (C++ enum variant: GestureOverride = 202)

pub const ScrollPrepare: Type[src]

The object needs to fill in its geometry information (QScrollPrepareEvent). (C++ enum variant: ScrollPrepare = 204)

pub const Scroll: Type[src]

The object needs to scroll to the supplied position (QScrollEvent). (C++ enum variant: Scroll = 205)

pub const Expose: Type[src]

Sent to a window when its on-screen contents are invalidated and need to be flushed from the backing store. (C++ enum variant: Expose = 206)

pub const InputMethodQuery: Type[src]

A input method query event (QInputMethodQueryEvent) (C++ enum variant: InputMethodQuery = 207)

pub const OrientationChange: Type[src]

The screens orientation has changes (QScreenOrientationChangeEvent). (C++ enum variant: OrientationChange = 208)

pub const TouchCancel: Type[src]

Cancellation of touch-event sequence (QTouchEvent). (C++ enum variant: TouchCancel = 209)

pub const ThemeChange: Type[src]

C++ enum variant: ThemeChange = 210

pub const SockClose: Type[src]

C++ enum variant: SockClose = 211

pub const PlatformPanel: Type[src]

A platform specific panel has been requested. (C++ enum variant: PlatformPanel = 212)

pub const StyleAnimationUpdate: Type[src]

C++ enum variant: StyleAnimationUpdate = 213

pub const ApplicationStateChange: Type[src]

The state of the application has changed. (C++ enum variant: ApplicationStateChange = 214)

pub const WindowChangeInternal: Type[src]

C++ enum variant: WindowChangeInternal = 215

pub const ScreenChangeInternal: Type[src]

C++ enum variant: ScreenChangeInternal = 216

pub const PlatformSurface: Type[src]

A native platform surface has been created or is about to be destroyed (QPlatformSurfaceEvent). (C++ enum variant: PlatformSurface = 217)

pub const Pointer: Type[src]

C++ enum variant: Pointer = 218

pub const TabletTrackingChange: Type[src]

The Wacom tablet tracking state has changed (since Qt 5.9). (C++ enum variant: TabletTrackingChange = 219)

pub const User: Type[src]

User-defined event. (C++ enum variant: User = 1000)

pub const MaxUser: Type[src]

Last user event ID. (C++ enum variant: MaxUser = 65535)

Trait Implementations

impl Eq for Type[src]

impl Clone for Type[src]

impl PartialEq<Type> for Type[src]

impl From<i32> for Type[src]

impl From<Type> for c_int[src]

impl Copy for Type[src]

impl Debug for Type[src]

Auto Trait Implementations

impl Send for Type

impl Unpin for Type

impl Sync for Type

impl UnwindSafe for Type

impl RefUnwindSafe for Type

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> StaticUpcast<T> for T[src]

impl<T, U> CastInto<U> for T where
    U: CastFrom<T>, 
[src]