XrVirtualMouse QML Type

Represents a virtual mouse for interacting with UIs in XR. More...

Import Statement: import QtQuick3D.Xr
Since: Qt 6.8
Inherits:

Item

Status: Technical Preview

Properties

Signals

Detailed Description

Property Documentation

enabled : bool

Indicates whether the virtual mouse is enabled. When true, the virtual mouse can interact with 3D objects in the scene.


leftMouseButton : bool

Indicates whether the left mouse button is pressed.

When set to true, the left mouse button is considered pressed.


middleMouseButton : bool

Indicates whether the middle mouse button is pressed.

When set to true, the middle mouse button is considered pressed.


rightMouseButton : bool

Indicates whether the right mouse button is pressed.

When set to true, the right mouse button is considered pressed.


source : Node

The 3D node associated with the virtual mouse. Holds a node representing the position of the virtual cursor in the 3D scene.


view : XrView

The OpenXR view associated with the virtual mouse. Holds the view in which the virtual mouse operates.


Signal Documentation

enabledChanged(bool enabled)

Emitted when the enabled property changes. enabled has the new value of the enabled property.

Note: The corresponding handler is onEnabledChanged.


leftMouseButtonChanged(bool leftMouseButton)

Emitted when the state of the left mouse button changes. leftMouseButton has new state of the left mouse button (true if pressed, false if released).

Note: The corresponding handler is onLeftMouseButtonChanged.


middleMouseButtonChanged(bool middleMouseButton)

Emitted when the state of the middle mouse button changes. middleMouseButton has new state of the middle mouse button (true if pressed, false if released).

Note: The corresponding handler is onMiddleMouseButtonChanged.


rightMouseButtonChanged(bool rightMouseButton)

Emitted when the state of the right mouse button changes. rightMouseButton has new state of the right mouse button (true if pressed, false if released).

Note: The corresponding handler is onRightMouseButtonChanged.


sourceChanged(Node source)

Emitted when the source property changes. source has the new Node held in the source property.

Note: The corresponding handler is onSourceChanged.


viewChanged(XrView view)

Emitted when the view property changes. view has the new XrView held in the view property.

Note: The corresponding handler is onViewChanged.


© 2024 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.