You have in code 2 QSqlQuery objects.
First named query and second named preparedQuery. You call method prepare() on object preparedQuery and then You try bind values to object query. So why are You wondering that all is going bad ?
You have in code 2 QSqlQuery objects.
First named query and second named preparedQuery. You call method prepare() on object preparedQuery and then You try bind values to object query. So why are You wondering that all is going bad ?
Please read the other posts.
Bookmarks