Hi everyone,

The goal is to build a simple recipe ingredients app using pyqt.

I have three tables. The first table stores the recipes. The second table stores the ingredients. The third table stores the recipe ingredient join table.

QSqlRelationalTableModel setRelation states that the table's primary key may not contain a relation to another table. How do you handle a many to many relationship using pyqt then?

My original thought was I was going to have three QSqlRelationalTableModel to handle this.

Does this mean you cannot use QSqlRelationalDelegate and would have to create a custom delegate to handle the relationship? I did see this thread http://www.qtcentre.org/threads/4658...iting-probllem.

Thank you,
Luke Kaim