PDA

View Full Version : How to get row no in sqlmodel



raju@123
16th October 2010, 03:49
Hi,

I am new to Qt. I have successfully created a database table using QSqlRelationalTablemodel also able to view the table.My requirement is to get the row number by giving the field name which is present in that row .For example ,

This is my tabel :

personid personname country
------------------------------------
101 Alice US
102 Bob India


If I give the filed name "Alice" , I should get the row no : 1. can you pls help me, how to do that? If possible pls give me the code snippet also.

Thanks & Regards,
Raju

Lykurg
16th October 2010, 08:06
Closed because of double posting.