← Back to team overview

uonedb-qt team mailing list archive

U1Db-Qt & nested fields

 

Renato,

I managed to figure out how to deal with nested fields and ListView delegates.

The trick is to access the model by using the delegate's index number. In the example we were working with like this:

text: aDocument.contents.City[index].Name


A longer example here:

https://pastebin.canonical.com/87051/


Using the database you provided here:

https://chinstrap.canonical.com/~renatofilho/u1db/world.db.u1db


Cheers,

Kevin