Hi,
I have been using QStandardItemModel to store some data with a nested structure. The data itself is string pairs that I just fill into two columns.
I would like if there was an easy way to extract data from the model based on a query using the first string in my string pair, eg
assume the nested model:
A
|-B
|----C,CVAL
D,DVAL


myvalue = model("A/B/C") would return CVAL

At the moment I am implementing this by iterating through levels and searching all rows for that nesting for the next child item in the query.
I have a feeling there must be something out there for this and I am overlooking it - is there a much easier and more established way to do this in QT?
Is there a more appropriate data structure for this perhaps?

Thanks for any ideas/pointers!
Soren