Hello Everyone,
I'll try to be as clear as possible but I'll probably be missing some vital information so please let me know if I am not conveying the idea in my head well.
Suppose I have a database with 2 tables, one for storing "text" information and one for storing links to images, each record on the first table can be linked to multiple records on the "image" table. So basically a 1-n relationship. As of right now I just create two QVectors which store the data every time I select/add/modify a record, and then visualize it in widgets I made. in particular for the Images i use a QListWidget with a custom item delegate. When I am done with the record I update the database creating an sql string an executing it. I found out though that using the QDataWidgetMapper would make my life a whole lot simple, if I am not mistaken. I think I understood the basic concept behind how the mapper works, but here is my question, how do I map the multiple images I might have per record on the image table to my QListWidget so that when I change/remove add an image/description it will update it on the database table.
Thank you very much