There is a way to auto find foreign key into a sql relation.?
I look the QtSql classes but there is only method to find primary key in QSqlRelationalTableModel