XrVirtualMouse QML Type
3D 컨트롤러 입력을 2D 항목의 마우스 입력에 매핑합니다. 더 보기...
Import Statement: | import QtQuick3D.Xr |
Since: | Qt 6.8 |
Inherits: | |
Status: | Technical Preview |
속성
- enabled : bool
- leftMouseButton : bool
- middleMouseButton : bool
- rightMouseButton : bool
- scrollPixelDelta : real
- scrollTimerInterval : int
- scrollWheelX : real
- scrollWheelY : real
- source : Node
- view : XrView
상세 설명
XrVirtualMouse는 3D 씬에서 2D 사용자 인터페이스와 상호작용할 수 있는 방법을 제공합니다.
일반적으로 다음과 같이 사용됩니다:
// XrView { id: xrView // XrController { id: rightController XrInputAction { id: rightTrigger hand: XrInputAction.RightHand actionId: [XrInputAction.TriggerPressed, XrInputAction.TriggerValue] } XrVirtualMouse { view: xrView source: rightController leftMouseButton: rightTrigger.pressed }
프로퍼티 문서
enabled : bool |
가상 마우스 활성화 여부를 나타냅니다. 참이면 가상 마우스가 씬의 2D 오브젝트에 마우스 이벤트를 보냅니다.
leftMouseButton : bool |
마우스 왼쪽 버튼의 상태를 설정합니다.
true로 설정하면 마우스 왼쪽 버튼이 눌립니다.
middleMouseButton : bool |
마우스 가운데 버튼의 상태를 설정합니다.
true로 설정하면 마우스 가운데 버튼이 눌립니다.
rightMouseButton : bool |
마우스 오른쪽 버튼의 상태를 설정합니다.
true로 설정하면 마우스 오른쪽 버튼이 눌려집니다.
scrollPixelDelta : real |
scrollTimerInterval : int |
시스템에 전송되는 스크롤 이벤트 사이의 시간을 밀리초 단위로 정의합니다.
scrollWheelX : real |
가로 스크롤 속도를 설정합니다.
양수 값은 오른쪽으로 스크롤하고 음수 값은 왼쪽으로 스크롤합니다. 스크롤 속도는 0으로부터의 거리에 비례하여 증가합니다.
scrollPixelDelta 를참조하세요 .
scrollWheelY : real |
세로 스크롤 속도를 설정합니다.
양수 값은 위로 스크롤하고 음수 값은 아래로 스크롤합니다. 스크롤 속도는 0으로부터의 거리에 비례하여 증가합니다.
scrollPixelDelta도 참조하세요 .
source : Node |
가상 마우스를 제어하는 3D 노드입니다.
source
속성은 일반적으로 XrController 로 설정됩니다. 마우스 이벤트는 source
노드의 forward vector 가 2D 항목과 교차하는 위치에 대해 생성됩니다.
view : XrView |
가상 마우스와 연결된 XR 뷰입니다. 가상 마우스가 작동하는 뷰를 보유합니다.
© 2025 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.