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

Tim O'Callaghan tocallaghan at meyn.net
Thu Jan 27 13:25:19 CET 2011


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


More information about the Qt-qml mailing list