QML属性动态绑定

1、绑定,使用冒号

x:root.x

2、解绑,使用等号

x = 0;

3、js绑定

button.text = Qt.binding(function(){return textField.text;});

posted @ 2020-06-18 17:42  朱小勇  阅读(1426)  评论(0编辑  收藏  举报