本页内容

Qt3DCore::QNodeId Class

class Qt3DCore::QNodeId

用于唯一标识一个QNode 。更多内容...

标题: #include <Qt3DCore/QNodeId>
CMake: find_package(Qt6 REQUIRED COMPONENTS 3DCore)
target_link_libraries(mytarget PRIVATE Qt6::3DCore)
qmake: QT += 3dcore
状态: 已弃用

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

公共函数

quint64 id() const
bool isNull() const
operator bool() const
bool operator!=(Qt3DCore::QNodeId other) const
bool operator<(Qt3DCore::QNodeId other) const
bool operator==(Qt3DCore::QNodeId other) const
bool operator>(Qt3DCore::QNodeId other) const

静态公共成员

Qt3DCore::QNodeId createId()
QNodeIdVector
size_t qHash(Qt3DCore::QNodeId id, size_t seed = 0)

详细说明

成员函数文档

[static noexcept] Qt3DCore::QNodeId QNodeId::createId()

返回节点 ID。

[constexpr noexcept] quint64 QNodeId::id() const

退货

[constexpr noexcept] bool QNodeId::isNull() const

退货

[constexpr noexcept] QNodeId::operator bool() const

退货

[constexpr noexcept] bool QNodeId::operator!=(Qt3DCore::QNodeId other) const

如果this!=other ,则返回true 。

[constexpr noexcept] bool QNodeId::operator<(Qt3DCore::QNodeId other) const

如果 `this ` < `other`,则返回 `true `。

[constexpr noexcept] bool QNodeId::operator==(Qt3DCore::QNodeId other) const

如果this ==other ,则返回true 。

[constexpr noexcept] bool QNodeId::operator>(Qt3DCore::QNodeId other) const

如果this >other ,则返回true 。

相关非成员

[alias] QNodeIdVector

一个由QNodeIds组成的向量。

[constexpr noexcept] size_t qHash(Qt3DCore::QNodeId id, size_t seed = 0)

返回包含id 以及可选的seed 的节点哈希。

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