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 |
バーチャルマウスが有効かどうかを示します。trueの時、バーチャルマウスはシーン内の2Dオブジェクトにマウスイベントを送ります。
leftMouseButton : bool |
左マウスボタンの状態を設定します。
trueに設定すると、マウスの左ボタンが押された状態になる。
middleMouseButton : bool |
マウスの中ボタンの状態を設定します。
trueに設定すると、中マウスボタンが押されます。
rightMouseButton : bool |
マウスの右ボタンの状態を設定します。
trueに設定すると、マウスの右ボタンが押されます。
scrollPixelDelta : real |
各スクロールイベントでスクロールされる基本距離を定義します。
これはスクロール速度が1のときにスクロールされる距離である。
scrollWheelX およびscrollWheelYも参照してください 。
scrollTimerInterval : int |
システムに送られるスクロールイベント間の時間をミリ秒単位で定義します。
scrollWheelX : real |
scrollWheelY : real |
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.