MouseEvent QML Type

A mouse or touch event, such as movement, a tap, or a release. More...

Import Statement: import Esri.ArcGISRuntime 100.15
Since: Esri.ArcGISRuntime 100.0
Inherits:

InputEvent

Properties

Detailed Description

Note: You cannot declare or create a component of this type in QML code.

MouseEvent provides the location of the event translated into map coordinates.

See also QMouseEvent.

Property Documentation

button : int

Returns the button that caused the mouse event (read-only).

For mouse move events, the value is always Qt.NoButton. Other options include Qt.LeftButton, Qt.RightButton, and Qt.MiddleButton.


buttons : int

Returns the buttons pressed that caused the mouse event (read-only).


mapPoint : Point

Returns the map Point of this mouse event (read-only).


mapX : double

Returns the x component of the x,y-coordinate of the corresponding map location (read-only).


mapY : double

Returns the x component of the x,y-coordinate of the corresponding map location (read-only).


x : int

Returns the x component of the x,y screen coordinates of this mouse event (read-only).


y : int

Returns the y component of the x,y screen coordinates of this mouse event (read-only).


Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.

You can no longer sign into this site. Go to your ArcGIS portal or the ArcGIS Location Platform dashboard to perform management tasks.

Your ArcGIS portal

Create, manage, and access API keys and OAuth 2.0 developer credentials, hosted layers, and data services.

Your ArcGIS Location Platform dashboard

Manage billing, monitor service usage, and access additional resources.

Learn more about these changes in the What's new in Esri Developers June 2024 blog post.

Close