Qt3DRender::QFilterKey Class

class Qt3DRender::QFilterKey

QFilterKey 类为过滤器键及其值提供存储空间。更多

Header: #include <QFilterKey>
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)

详细说明

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

注意: 不能禁用 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)

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