<div class="gmail_quote">On Mon, Aug 15, 2011 at 10:30 AM, Luca Beltrame <span dir="ltr"><<a href="mailto:einar@heavensinferno.net">einar@heavensinferno.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
In data lunedė 15 agosto 2011 09:37:29, Eric Mesa ha scritto:<br>
<div class="im"><br>
> its XML structure, right?  So the QML can just treat it as XML later?  IOW,<br>
> I don't want to lose the benefit of XML's structured data.<br>
<br>
</div>If you turn it into a QVariant, there's an additional PyQt method to turn it<br>
back into a Python object, using the toPyObject() method of the QVariant<br>
instance.<br></blockquote><div><br></div><div>So if I did that, would the process be - turn my tuple into a QVarient, put it into the data engine, then, in the QML side grab it and turn it back into a PyObject?  </div><div>
<br></div><div>Although maybe that's not necessary.  If I have it as a text file with XML structure, perhaps QML will just read that straight from the data engine?  (Without needing it to be a python object?)  I have to review my code and see if I need the tuple or if I can change my code a bit so it just needs the XML. </div>
</div>