Assuming the table's id starts at 0 like the combobox's index:
Qt Code:
QSqlQuery qry; qry.prepare("SELECT * FROM note WHERE id = :id"); qry.bindValue(":id", index);To copy to clipboard, switch view to plain text mode
Cheers,
_
Assuming the table's id starts at 0 like the combobox's index:
Qt Code:
QSqlQuery qry; qry.prepare("SELECT * FROM note WHERE id = :id"); qry.bindValue(":id", index);To copy to clipboard, switch view to plain text mode
Cheers,
_
Bookmarks