The XML List Model stuff in QML has what you are looking for. It may not work exactly as you want, but I think you can work with it for your purposes.
----- Original Message ---- From: Tim O'Callaghan <[email protected]> To: [email protected] Sent: Thu, January 27, 2011 7:25:19 AM Subject: Re: [Qt-qml] Can QML/QScript access a QDomDocument object from a QML/QScript? On 01/27/2011 09:10 AM, [email protected] wrote: > Hi, > > On 27/01/2011, at 3:20 AM, ext Tim O'Callaghan wrote: > >> Hi, >> >> I'm wondering if QML/QScript can use an exported C++ QDomDocument as a >> QML native XML object? > > What is a QML native XML object? The webkit DOM Object returned from XMLHttpRequest.responseXML, that can be manipulated in QML/Javascript. I have a C++ QT application that makes XML RPC style requests. Some of the data from the XML response (in a QDomDocument object) needs to be rendered in the QML interface. I was hoping i could share a QDomDocument object between the C++ and QML, rather than have to parse the QDomDocument into another object, which takes up more memory. > Regardless, the answer is no (for QML) ;) > Could i suggest this be looked into? -- Tim O'Callaghan Research & Development MEYN - Food Processing Technology B.V. Noordeinde 68 - 1511 AE Oostzaan - The Netherlands Phone: +31 756 84 3355 | Fax: +31 756 84 4150| E-mail: [email protected] | Web: http://www.meyn.nl _______________________________________________ Qt-qml mailing list [email protected] http://lists.qt.nokia.com/mailman/listinfo/qt-qml _______________________________________________ Qt-qml mailing list [email protected] http://lists.qt.nokia.com/mailman/listinfo/qt-qml
