FixedAdding #1

Merged
danylo_nevidomiy merged 33 commits from FixedAdding into main 2025-02-12 21:46:46 +03:00
Showing only changes of commit 1cf146112a - Show all commits

View File

@ -103,8 +103,11 @@ void MainWindow::putRecord(Record* record){
Record* MainWindow::getRecord(int index)
{
QVariant x = model->record(index-1).value(0);
int id;
id = x.toInt();
query->prepare("SELECT * FROM records WHERE id = (:id)");
query->bindValue(":id", index);
query->bindValue(":id", id);
query->exec();
// QSqlRecord rec = query->record();
//// query->next();