Qt3DCore::QBackendNode Class

class Qt3DCore::QBackendNode

所有 Qt3D 后端节点的基类。更多

头文件: #include <Qt3DCore/QBackendNode>
CMake: find_package(Qt6 REQUIRED COMPONENTS 3DCore)
target_link_libraries(mytarget PRIVATE Qt6::3DCore)
qmake: QT += 3dcore
状态:已废弃

公共类型

enum Mode { ReadOnly, ReadWrite }

公共函数

bool isEnabled() const
Qt3DCore::QBackendNode::Mode mode() const
Qt3DCore::QNodeId peerId() const
void setEnabled(bool enabled)
virtual void syncFromFrontEnd(const Qt3DCore::QNode *frontEnd, bool firstTime)

详细说明

成员类型文档

enum QBackendNode::Mode

后台节点的模式。

常数
Qt3DCore::QBackendNode::ReadOnly0
Qt3DCore::QBackendNode::ReadWrite1

成员函数文档

[noexcept] bool QBackendNode::isEnabled() const

如果后端节点已启用,则返回true

[noexcept] Qt3DCore::QBackendNode::Mode QBackendNode::mode() const

返回后端模式的模式。

[noexcept] Qt3DCore::QNodeId QBackendNode::peerId() const

返回后端节点的对等节点 ID。

[noexcept] void QBackendNode::setEnabled(bool enabled)

通过enabled 启用或禁用后端节点。

另请参阅 isEnabled() 。

[virtual] void QBackendNode::syncFromFrontEnd(const Qt3DCore::QNode *frontEnd, bool firstTime)

QBackendNode::syncFromFrontEndfrontEnd firstTime

frontEnd 节点需要与后台同步其更改(通常是由于属性更改)时,方面会调用此操作。

firstTime 如果后端节点刚刚创建,则为 true

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