I have below response and would like to display all these <book> elements in a 
QTableView, and the <summary> in a QTreeView.
So the summary tree view will be like:
+--Type
       +---fiction (2)
       +---comics (3)

That way when user click fiction or comics I can filter that QTableView to 
display filtered items accordingly. I've already create a tablemodel to show 
<book> items in QTableView. Guess I'll need another model for the QTreeView, 
but can I use a QAbstractProxyModel to wrap my tablemodel so that I don't have 
2 copies of the same source data?
-------------
<books>
    <summary>
        <type>
            <fiction>2</fiction>
            <comics>3</comics>
            ...
        </type>
    </summary>
    <book>
        <type>fiction</type>
        <title>haha</title>
        <author>xxx</author>
        ....
    </book>
    ...
    <book>
        <type>comics</type>
        <title>hihi</title>
        <author>xxx</author>
        ....
    </book>
</books>

_______________________________________________
Interest mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to