PDA

View Full Version : Help needed in QSqlReleationTablemodel



raju@123
15th October 2010, 08:04
Hi,

I am new to Qt. I have successfully created a database table using QSqlRelationTablemodel 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 .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:08
One quick look in the docs would have told you: QAbstractItemModel::match() or use a QSortFilterProxyModel depending what you want to achieve exactly.