Can you post the error you get? You can fetch the error using this:
QString someQuery
= "select whatever you want;" query.exec(someQuery);
if (query.lastError().isValid())
{
qDebug() << "Error: " << query.lastError().text()
<< " in query " << query.lastQuery();
// ...
}
QString someQuery = "select whatever you want;"
query.exec(someQuery);
if (query.lastError().isValid())
{
qDebug() << "Error: " << query.lastError().text()
<< " in query " << query.lastQuery();
// ...
}
To copy to clipboard, switch view to plain text mode
Bookmarks