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::ReadOnly | 0 |
Qt3DCore::QBackendNode::ReadWrite | 1 |
成员函数文档
[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
© 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.