XrVirtualMouse QML Type
Represents a virtual mouse for interacting with UIs in XR. More...
Import Statement: | import QtQuick3D.Xr |
Since: | Qt 6.8 |
Inherits: | |
Status: | Technical Preview |
Properties
- enabled : bool
- leftMouseButton : bool
- middleMouseButton : bool
- rightMouseButton : bool
- scrollPixelDelta : float
- scrollTimerInterval : int
- scrollWheelX : float
- scrollWheelY : float
- source : Node
- view : XrView
Signals
- enabledChanged(bool enabled)
- leftMouseButtonChanged(bool leftMouseButton)
- middleMouseButtonChanged(bool middleMouseButton)
- rightMouseButtonChanged(bool rightMouseButton)
- scrollPixelDeltaChanged(int scrollPixelDelta)
- scrollTimerIntervalChanged(int scrollTimerInterval)
- scrollWheelXChanged(float scrollWheelX)
- scrollWheelYChanged(float scrollWheelY)
- sourceChanged(Node source)
- viewChanged(XrView view)
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.
scrollPixelDelta : float |
Defines the distance scrolled with each scrolling event.
scrollTimerInterval : int |
Defines time in milliseconds between scrolling events sent to the system.
scrollWheelX : float |
Indicates the scrolling direction on the X-axis.
Positive values scroll right and negative values scroll left. Scroll speed increases relative to distance from zero.
scrollWheelY : float |
Indicates the scrolling direction on the Y-axis.
Positive values scroll up and negative values scroll down. Scroll speed increases relative to distance from zero.
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
.
scrollPixelDeltaChanged(int scrollPixelDelta) |
Emitted when the scroll pixel delta changes. scrollPixelDelta has new value.
Note: The corresponding handler is onScrollPixelDeltaChanged
.
scrollTimerIntervalChanged(int scrollTimerInterval) |
Emitted when the scroll timer interval changes. scrollTimerInterval has new value.
Note: The corresponding handler is onScrollTimerIntervalChanged
.
scrollWheelXChanged(float scrollWheelX) |
Emitted when the value of scroll wheel X changes. scrollWheelX has new value.
Note: The corresponding handler is onScrollWheelXChanged
.
scrollWheelYChanged(float scrollWheelY) |
Emitted when the value of scroll wheel Y changes. scrollWheelY has new value.
Note: The corresponding handler is onScrollWheelYChanged
.
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
.