qqmllistproperty

QQmlListProperty - writable QList violates QML's memory management rules?

拜拜、爱过 提交于 2019-12-11 07:28:22
问题 I've been using QQmlListProperty in a kind of a "master class" that is both in the same time a model and a qml list property, allowing the easy declarative markup of object backbones, which may or may not be modifiable as well as the runtime generation / consolidation of code from dynamic structure. I've shared something approximate in this answer. I have zero idea of the actual implementation details, but what triggers my "spider sense" is the following bits of documentation: