is it posible to use QSqlRelationalTableModel to relate one column in source table to multiple columns in destination table? For instance, if inf first table you have:
ID | NAME | AGE
1 | John | 10
ID | NAME | AGE
1 | John | 10
To copy to clipboard, switch view to plain text mode
and second:
ID | MOTHER | FATHER
1 | Anne | Bob
ID | MOTHER | FATHER
1 | Anne | Bob
To copy to clipboard, switch view to plain text mode
to get the table:
ID | NAME | AGE | MOTHER | FATHER
1 | John | 10 | Anne | Bob
ID | NAME | AGE | MOTHER | FATHER
1 | John | 10 | Anne | Bob
To copy to clipboard, switch view to plain text mode
model->setRelation replaces the column, while i'd like to add them.
Bookmarks