2 Attachment(s)
Problem in executing SqLite Query in C++ project
Hello,
I am trying to connect to database SBS.sqlite using QT.
I sucessfully connect my database but I couldn't execute query.
I have attatched mainwindow.cpp and mainwindow.h with this thread.
The problem I mentioned is invoid MainWindow::on_registerButton_2_clicked() function.
Re: Problem in executing SqLite Query in C++ project
Firstz make sure that the table really exists, and then you should also bind the values you want to store in the db
2 Attachment(s)
Re: Problem in executing SqLite Query in C++ project
Now,I have done it. But the problem is same. It would not execute query.
Re: Problem in executing SqLite Query in C++ project
Then you should take a look at QSqlQuery::lastError() after preparing and executing your query.