diff --git a/platform/qt/src/utils/conversion.hpp b/platform/qt/src/utils/conversion.hpp index f71a333ecd2..f1fbe1d66b9 100644 --- a/platform/qt/src/utils/conversion.hpp +++ b/platform/qt/src/utils/conversion.hpp @@ -26,6 +26,10 @@ class ConversionTraits { static bool isArray(const QVariant& value) { #if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0) + if (value.typeId() == QMetaType::QString) { + // QString is convertible to a QChar list, which we don't want + return false; + } return QMetaType::canConvert(value.metaType(), QMetaType(QMetaType::QVariantList)); #else return value.canConvert(QVariant::List);