From 879d30394a41b7b7124fc8139e787a9bdbe0dfee Mon Sep 17 00:00:00 2001 From: Fabian Kosmale Date: Fri, 5 Aug 2022 15:33:36 +0200 Subject: [PATCH] QSqlQuery: Do not use deleted constructor in docs QVariant(QMetaType::Type) is deleted since Qt 5 (sic!). Suggest usage of the constructor taking a meta-type instead. Pick-to: 6.2 6.3 6.4 Change-Id: I50949dac9dfc35c80108debdeabc791afe0998b6 Reviewed-by: Marc Mutz Reviewed-by: Andy Shaw --- src/sql/kernel/qsqlquery.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sql/kernel/qsqlquery.cpp b/src/sql/kernel/qsqlquery.cpp index fbae6ef27c..106089f75d 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.