XrVirtualMouse QML Type

3Dコントローラ入力を2Dアイテムのマウス入力にマップする。詳細...

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

Item

Status: Technical Preview

プロパティ

詳しい説明

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 [default: 15]

各スクロールイベントでスクロールされる基本距離を定義します。

これはスクロール速度が1のときにスクロールされる距離である。

scrollWheelX およびscrollWheelYも参照してください


scrollTimerInterval : int [default: 30]

システムに送られるスクロールイベント間の時間をミリ秒単位で定義します。


scrollWheelX : real

水平スクロール速度を設定します。

正の値は右へ、負の値は左へスクロールする。スクロール速度は、ゼロからの距離に対して相対的に増加する。

scrollPixelDeltaも参照してください


scrollWheelY : real

垂直方向のスクロール速度を設定します。

正の値は上へ、負の値は下へスクロールする。スクロール速度はゼロからの距離に対して相対的に増加する。

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.