diff --git a/src/sql/kernel/qsqlquery.cpp b/src/sql/kernel/qsqlquery.cpp index fbae6ef27c0..106089f75d4 100644 --- a/src/sql/kernel/qsqlquery.cpp +++ b/src/sql/kernel/qsqlquery.cpp @@ -1047,8 +1047,8 @@ bool QSqlQuery::exec() To bind NULL values, a null QVariant of the relevant type has to be added to the bound QVariantList; for example, \c - {QVariant(QMetaType::QString)} should be used if you are using - strings. + {QVariant(QMetaType::fromType())} should be used if you are + using strings. \note Every bound QVariantList must contain the same amount of variants.