本页内容

Qt3DRender::QFilterKey Class

class Qt3DRender::QFilterKey

QFilterKey 类用于存储过滤键及其值。更多内容...

头文件: #include <qfilterkey.h>
CMake: find_package(Qt6 REQUIRED COMPONENTS 3drender)
target_link_libraries(mytarget PRIVATE Qt6::3drender)
qmake: QT += 3drender
在 QML 中: FilterKey
继承自: Qt3DCore::QNode
状态: 已弃用

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

属性

公共函数

QString name() const
QVariant value() const

公共槽

void setName(const QString &customType)
void setValue(const QVariant &value)

信号

void nameChanged(const QString &name)
void valueChanged(const QVariant &value)

详细说明

QTechnique 和QRenderPass 使用过滤器键来指定在渲染的哪个阶段使用该技术或渲染通道。

注意:QFilterKey 节点无法被禁用。

属性文档

name : QString

存储过滤器键的名称。

访问函数:

QString name() const
void setName(const QString &customType)

通知信号:

void nameChanged(const QString &name)

value : QVariant

存储过滤器键的值。

访问函数:

QVariant value() const
void setValue(const QVariant &value)

通知信号:

void valueChanged(const QVariant &value)

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