[Qt-interest] How to get the children of QXmlItem
Hendrik vP
variadic.template at googlemail.com
Thu Apr 7 21:25:31 CEST 2011
Hi,
I'm using the XMLPatterns-module of Qt to describe simple
XML-transformations with
XQuery. I have a custom XML-model that derives from QSimpleXmlNodeModel and
saves references to the original-objects into the internalPointer of the
QXmlNodeModelIndex. I'm using a QXmlQuery to call a XQuery on my model and
evaluate it to a QXmlResultItems-object. Thus, I am able to get references
to my
original datastructure, which is fine. But when I'm returning a new
XML-treestructure
with some children within the XQuery, I just have this QXmlNodeModelIndex
that
seems not to have the ability to give me references to its children,
siblings and so on.
I know that there is a public iterate-method within the index, but as
writtin within it's
header, it is not part of the public API and thus I won't use it.
If the nextFromSimpleAxis-method within QAbstractXmlNodeModel would be
public
instead of protected, I would have a nice and clean access to all nodes
within the
result - maybe it can be turned into public in a future release?
And can somebody give me a hint/best-practice how to solve it for the
moment?
- Hendrik
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110407/b0c51c8d/attachment.html
More information about the Qt-interest-old
mailing list