PDA

View Full Version : QSqlRelationalTableModel and existing relations



qutron
18th August 2011, 12:34
How to force QSqlRelationalTableModel to use existing relations in MySql table?

Relations are set by QSqlRelationalTableModel->setRelation() method, but I created some tables with foreign key support (FOREIGN KEY (pr_id) REFERENCES parent_table(pr_id))