- Qt 6.8
- Qt 3D
- QML Types
- Qt3D.Input (Deprecated)
- MouseEvent
- Qt 6.8.2 Reference Documentation

# MouseEvent QML Type

Provides parameters that describe a mouse event. More...

Import Statement: | `import Qt3D.Input 2.8`
In C++: | QMouseEvent
Status: | Deprecated

- List of all members, including inherited members

## Properties

- accepted : bool
- button : Buttons
- buttons : int
- modifiers : Modifiers
- wasHeld : bool
- x : int
- y : int

## Detailed Description

Mouse events occur when a mouse button is pressed and the ray traversing the view, originating from the mouse position intersects with one or more elements of the scene.

See also KeyEvent, WheelEvent, and MouseHandler.

## Property Documentation

accepted : bool

Specifies if the mouse event has been accepted

button : Buttons `[read-only]`

Specifies the button triggering the mouse event

buttons : int `[read-only]`

Specifies the button triggering the mouse event

modifiers : Modifiers `[read-only]`

Specifies if any modifiers were applied to the mouse event

wasHeld : bool `[read-only]`

Specifies if a mouse button was held down during the mouse event

x : int `[read-only]`

Specifies The X coordinate of the mouse event

y : int `[read-only]`

Specifies The Y coordinate of the mouse event