在本页

Qt3DAnimation::QChannelMapping Class

class Qt3DAnimation::QChannelMapping

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

Header: #include <QChannelMapping>
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.