我想动态地向QML元素添加属性:
Item {
id: dynamicProperty;
property int first;
Component.onCompleted: {
/* once this block of code is executed, i want to add
property int second; property bool third; property variant fourth;
*/
}
}
Run Code Online (Sandbox Code Playgroud)
有没有办法完成上述任务.
qml ×1