本页内容

Qt3DAnimation::QChannelMapping Class

class Qt3DAnimation::QChannelMapping

允许将片段中的通道映射到应用程序中对象的属性上。更多...

标题: #include <qchannelmapping.h>
CMake: find_package(Qt6 REQUIRED COMPONENTS 3danimation)
target_link_libraries(mytarget PRIVATE Qt6::3danimation)
qmake: QT += 3danimation
继承自: Qt3DAnimation::QAbstractChannelMapping
状态: 技术预览

该类处于技术预览阶段,内容可能会有变动。

属性

公共函数

QString channelName() const
QString property() const
Qt3DCore::QNode *target() const

公共槽位

void setChannelName(const QString &channelName)
void setProperty(const QString &property)
void setTarget(Qt3DCore::QNode *target)

信号

void channelNameChanged(QString channelName)
void propertyChanged(QString property)
void targetChanged(Qt3DCore::QNode *target)

详细说明

属性文档

channelName : QString

存储用于频道映射的频道名称。

访问函数:

QString channelName() const
void setChannelName(const QString &channelName)

通知信号:

void channelNameChanged(QString channelName)

property : QString

存储目标节点上应进行动画处理的属性的名称。

访问函数:

QString property() const
void setProperty(const QString &property)

通知器信号:

void propertyChanged(QString property)

target : Qt3DCore::QNode*

用于存储通道映射的目标节点。

访问函数:

Qt3DCore::QNode *target() const
void setTarget(Qt3DCore::QNode *target)

通知信号:

void targetChanged(Qt3DCore::QNode *target)

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