uhm? and how can I resolve that (even if partially) :'|?
uhm? and how can I resolve that (even if partially) :'|?
Resolve what?
Not leaking the query -> already told you.
Using place holders -> QSqlQuery::prepare().
Finding the full data of the respective entry -> already suggested two options. E.g. your table has an id column. If that starts with ß, then you could use the currentIndexChanged signal that has an integer argument and use that to query.
Cheers,
_
I'm a real begginer, can you provide me some code line please?![]()
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