本页内容

PickingSettings QML Type

PickingSettings 类规定了如何处理实体选择。更多内容...

Import Statement: import Qt3D.Render 2.12
In C++: QPickingSettings
Status: Deprecated

此类型已弃用。我们强烈建议不要在新代码中使用它。

属性

详细说明

选择设置决定了实体选择的处理方式。有关实体选择的更多详细信息,请参阅 Qt3D.Render::ObjectPicker 或 Qt3D.Render::RayCaster 组件的文档。

使用ObjectPicker 组件时,拾取操作由鼠标事件触发。

使用RayCaster 或ScreenRayCaster 组件时,应用程序可以显式触发选择操作。

在这两种情况下,系统都会向场景中投射一条光线,以查找与该光线相交的几何体。

另请参阅 ObjectPicker 、RayCaster 和ScreenRayCaster 。

属性文档

faceOrientationPickingMode : enumeration

指定面朝向如何影响三角形选择

pickMethod : enumeration

保存当前的选取方法。

另请参阅 Qt3DRender::QPickingSettings::PickMethod 。

pickResultMode : enumeration

保存当前的选中结果模式。

另请参阅 Qt3DRender::QPickingSettings::PickResultMode 。

worldSpaceTolerance : real

存储用于评估线段和点选择的阈值(以模型空间坐标表示)。

© 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.