diff --git a/src/corelib/kernel/qvariant.h b/src/corelib/kernel/qvariant.h index b1f6442bec..9ed6fedd3c 100644 --- a/src/corelib/kernel/qvariant.h +++ b/src/corelib/kernel/qvariant.h @@ -498,7 +498,7 @@ public: { if (value.valueless_by_exception()) return QVariant(); - return std::visit([](const auto &arg) { return fromValue(arg); }, value); + return std::visit([](const auto &arg) { return QVariant::fromValue(arg); }, value); } template