No, not at the moment. On 14/04/2011, at 12:14 AM, ext Jason H wrote:
> Thanks. > > So is there any [existing] way to take a XML mapping and convert it to JSON > in > QML? > > > > > ----- Original Message ---- > From: "[email protected]" <[email protected]> > To: [email protected] > Cc: [email protected] > Sent: Wed, April 13, 2011 12:52:52 AM > Subject: Re: [Qt-qml] Parsing model Roles in functions > > > On 13/04/2011, at 12:30 PM, ext Jason H wrote: > >> Thanks Bea, >> >> I figured that could be done, but then I need to list every possible role. >> I'd much rather send the parameter list as a whole to the function and let >> that >> >> look for the variables it is coded for. >> The function the param list being passed to supplied by a component. I'm >> trying >> >> to do this in one request, not two, but I could split it and have a model >> specific for each component. But I'd rather not do that. >> >> Perhaps there is a way to define the XmlRole for ParamList to be passed as a >> model itself to a function, then I can take ParamList as a model itself? >> > > The XmlRole query must evaluate to a single value, not a list, so this is not > currently possible. > > However, there will be work on this sort of thing to improve XML support in > general in future releases. http://bugreports.qt.nokia.com/browse/QTBUG-13688 > is > a task for supporting list data, and > http://bugreports.qt.nokia.com/browse/QTBUG-12953 would allow objects (rather > than models) to be created from XML data. > > regards, > > Bea > > > _______________________________________________ Qt-qml mailing list [email protected] http://lists.qt.nokia.com/mailman/listinfo/qt-qml
