[Qt-qml] Can QML/QScript access a QDomDocument object from a QML/QScript?

Jason H scorp1us at yahoo.com
Thu Jan 27 16:17:06 CET 2011


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 <tocallaghan at meyn.net>
To: qt-qml at qt.nokia.com
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, aaron.kennedy at nokia.com 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: 
tocallaghan at meyn.net  | Web: http://www.meyn.nl
_______________________________________________
Qt-qml mailing list
Qt-qml at qt.nokia.com
http://lists.qt.nokia.com/mailman/listinfo/qt-qml



      


More information about the Qt-qml mailing list