I want to get the index of item of QListView and set at this item focus. The items are strings! How can I make it?

I have made this is:
Qt Code:
  1. void LicenceBuilder::findLeftSN(const QString& new_SN)
  2. {
  3. if(new_SN.isEmpty()) return;
  4.  
  5. model.setTable("DeviceList");
  6. model.select();
  7. QStringList listNames, selList;
  8. for(int i=0; i<model.rowCount(); ++i)
  9. {
  10. QSqlRecord record = model.record(i);
  11. listNames.append(record.value("serialNumber").toString());
  12. }
  13. foreach(QString name, listNames)
  14. if(name.indexOf(new_SN, 0, Qt::CaseInsensitive) != -1)
  15. selList.append(name);
  16.  
  17. /// What to do??????
  18. }
To copy to clipboard, switch view to plain text mode 

This slot must find index of item and set focus. Help me, please!