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引擎会调用此方法。
© 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.