Hi, I have this sql statement;

Qt Code:
  1. QSqlQuery query;
  2. query.exec(trUtf8("SELECT id FROM descriptor_table WHERE ime_tabele='%1'").arg("town"));
To copy to clipboard, switch view to plain text mode 

where descriptor_table and "town" are two tables in my database. The descriptor_table hold info about other tables.

Now I want to read the rows into the application at which the certain table appears. In this case lines are 1,2,3 (if I enter this command in mysql> command line). The problem now is that I want to get them into an application...

Any ideas are appreciated.