QFilterKey Class

class Qt3DRender ::QFilterKey

The QFilterKey class provides storage for filter keys and their values. 更多...

头: #include <QFilterKey>
CMake: find_package(Qt6 REQUIRED COMPONENTS 3drender)
target_link_libraries(mytarget PRIVATE Qt6::3drender)
qmake: QT += 3drender
实例化: 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 )

详细描述

Filter keys are used by QTechnique and QRenderPass to specify at which stage of rendering the technique or the render pass is used.

注意: QFilterKey node can not be disabled.

特性文档编制

name : QString

Holds the name of the filter key.

访问函数:

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

通知程序信号:

void nameChanged (const QString & name )

value : QVariant

Holds the value of the filter key.

访问函数:

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

通知程序信号:

void valueChanged (const QVariant & value )