As You have set a name for Your data base connection You will need to specify a connection for the Query to use.
QSqlQuery::QSqlQuery ( const QString & query = QString(), QSqlDatabase db = QSqlDatabase() )
Qt Code:
qry.prepare("....");To copy to clipboard, switch view to plain text mode
Bookmarks