本页内容

Qt3DRender::QPickLineEvent Class

class Qt3DRender::QPickLineEvent

QPickLineEvent 类用于存储选择线段时的相关信息。更多内容...

头文件: #include <qpicklineevent.h>
CMake: find_package(Qt6 REQUIRED COMPONENTS 3drender)
target_link_libraries(mytarget PRIVATE Qt6::3drender)
qmake: QT += 3drender
在 QML 中: PickLineEvent
继承自: Qt3DRender::QPickEvent
状态: 已弃用

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

属性

公共函数

QPickLineEvent()
uint edgeIndex() const
uint vertex1Index() const
uint vertex2Index() const

详细说明

另请参阅 QPickEvent 。

属性文档

[read-only] edgeIndex : const uint

指定所选边的索引

访问函数:

uint edgeIndex() const

[read-only] vertex1Index : const uint

指定所选边的第一点索引

访问函数:

uint vertex1Index() const

[read-only] vertex2Index : const uint

指定所选边上第二个点的索引

访问函数:

uint vertex2Index() const

成员函数文档

QPickLineEvent::QPickLineEvent()

创建一个新的 QPickEvent。

uint QPickLineEvent::edgeIndex() const

QPickLineEvent::edgeIndex 返回所选边线的索引

注意: 这是属性 edgeIndex 的获取 函数。

uint QPickLineEvent::vertex1Index() const

QPickLineEvent::vertex1Index 返回所选边的第一点索引

注: 这是属性 vertex1Index 的获取 函数。

uint QPickLineEvent::vertex2Index() const

QPickLineEvent::vertex2Index 返回所选三角形中第二个顶点的索引

注意: 这是属性 vertex2Index 的获取 函数。

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