For a combobox i have added list of items using query from database table.
query.exec("select bookname from books_totallist");
while(query.next())
{
ui->comboBoxbook->addItem(query.value(0).toString());
}
Now Say combobox contains items as book1,book2,book3,.....etc.Each book has corresponding id in table.
If i select any book i need to get respective id of the book..? So please provide me some hint on this............
Regards
sai
Bookmarks