[Interest] QtQuick - list of heterogeneous objects

Sylvain Pointeau sylvain.pointeau at gmail.com
Tue May 29 11:21:09 CEST 2018


Dear all,

how would you do in Qml to display a list of heterogeneous objects from a
array in json provided dynamically?

[
{type: "image", src: "xxx", text: "aaa"},
{type: "text", text: "aaa"},
{type: "circle", text: "aaa"}
]

and I have 3 Qml object definition (or class? or do we call them?) that I
can use

What would be the best approach?

Best regards,
Sylvain
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20180529/ebb532da/attachment.html>


More information about the Interest mailing list