error: no matching function for call to ‘QSqlQuery::bindValue(int, QString)
There is no such function QSqlQuery::bindValue(int, QString) in Qt.
You have to use a QVariant instead of a QString.
The correct signature of the bindValue function is :
QSqlQuery::bindValue ( int pos,
const QVariant & val, QSql
::ParamType paramType
= QSql
::In )
QSqlQuery::bindValue ( int pos, const QVariant & val, QSql::ParamType paramType = QSql::In )
To copy to clipboard, switch view to plain text mode
try this:
query.
bindValue(0,
QVariant( uuid.
toString() ) );
query.bindValue(0,QVariant( uuid.toString() ) );
To copy to clipboard, switch view to plain text mode
Bookmarks