QQmlPropertyValueSource Class
QQmlPropertyValueSource 类是动画和绑定等属性值源的接口。更多
头文件: | #include <QQmlPropertyValueSource> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS Qml) target_link_libraries(mytarget PRIVATE Qt6::Qml) |
qmake: | QT += qml |
公共函数
QQmlPropertyValueSource() | |
virtual | ~QQmlPropertyValueSource() |
virtual void | setTarget(const QQmlProperty &property) = 0 |
详细说明
有关编写自定义属性值源的信息,请参阅属性值源。
成员函数文档
QQmlPropertyValueSource::QQmlPropertyValueSource()
构造一个 QQmlPropertyValueSource。
[virtual noexcept]
QQmlPropertyValueSource::~QQmlPropertyValueSource()
销毁值源。
[pure virtual]
void QQmlPropertyValueSource::setTarget(const QQmlProperty &property)
设置值源的目标property 。分配值源时,QML 引擎将调用此方法。
© 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.