PickEvent QML Type
PickEvent 用于存储对象被选中时的信息。在选中操作成功时,该对象作为参数传递给大多数 QObjectPicker 组件的信号。更多内容...
| Import Statement: | import Qt3D.Render 2.12 |
| In C++: | QPickEvent |
| Status: | Deprecated |
此类型已弃用。我们强烈建议不要在新代码中使用它。
属性
- accepted : bool
- button : int
- buttons : int
- distance : real
- entity : Entity
- localIntersection : Vector3D
- modifiers : int
- position : Point2D
- viewport : Viewport
- worldIntersection : Vector3D
详细说明
另请参阅 ObjectPicker 和PickingSettings 。
属性文档
accepted : bool
指定事件是否已被接受
button : int [read-only]
指定触发了该事件的鼠标按钮
buttons : int [read-only]
指定该事件中鼠标按钮的状态
distance : real [read-only]
指定命中点到摄像机的距离
entity : Entity [read-only]
被选中的几何体所属的实体。
如果对象选择器未附加到场景图中的叶节点上,此属性有助于确定实际被选中的子实体是哪一个。
localIntersection : Vector3D [read-only]
指定被选中实体的本地坐标系中命中点的坐标
modifiers : int [read-only]
指定该事件中鼠标按钮的状态
position : Point2D [read-only]
指定鼠标相对于渲染区域(窗口或快捷项)的位置
viewport : Viewport [read-only]
触发此事件的视口。空值表示该事件源自一个没有视口的帧图分支。如果某个帧图分支的视口位于另一个视口内部,则该属性将包含叶子视口。
worldIntersection : Vector3D [read-only]
指定在世界坐标系中命中点的坐标
© 2026 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.