Hi,

I build application which can read all tables on all databases on specified server (MySQL 5.0), so I don't know how selected table look like. I have to get list of all foreign keys (if is there any) for selected table. I found class QSqlRelationalTableModel, but there I must to setRelation with exact names of columns, but in my case I don't know which columns are fk and on which table's column pointing at. In database are defined fk's and when I open database in MySQL-Front I can see all relations. I have to see relations from my Qt application.

Thanks.