diff --git a/src/designer/src/lib/shared/qdesigner_propertysheet.cpp b/src/designer/src/lib/shared/qdesigner_propertysheet.cpp
index 10d1eecf3f603d4602aa283c7f0142afc5a6c56c..c691055881c528466c104e6805a07bc5f6b59a8b 100644
--- a/src/designer/src/lib/shared/qdesigner_propertysheet.cpp
+++ b/src/designer/src/lib/shared/qdesigner_propertysheet.cpp
@@ -1117,7 +1117,7 @@ QVariant QDesignerPropertySheet::resolvePropertyValue(int index, const QVariant
         return qvariant_cast<qdesigner_internal::PropertySheetStringListValue>(value).value();
 
     if (value.canConvert<qdesigner_internal::PropertySheetKeySequenceValue>())
-        return qvariant_cast<qdesigner_internal::PropertySheetKeySequenceValue>(value).value();
+        return QVariant::fromValue(qvariant_cast<qdesigner_internal::PropertySheetKeySequenceValue>(value).value());
 
     if (value.canConvert<qdesigner_internal::PropertySheetPixmapValue>()) {
         const QString path = qvariant_cast<qdesigner_internal::PropertySheetPixmapValue>(value).path();
diff --git a/src/shared/qtpropertybrowser/qtvariantproperty.cpp b/src/shared/qtpropertybrowser/qtvariantproperty.cpp
index 43043f352efa99c5936cbf83f61870efb00ff407..bdc0b0c41ab29e488d54c431946074bb706a1d9f 100644
--- a/src/shared/qtpropertybrowser/qtvariantproperty.cpp
+++ b/src/shared/qtpropertybrowser/qtvariantproperty.cpp
@@ -1324,7 +1324,7 @@ QVariant QtVariantPropertyManager::value(const QtProperty *property) const
     } else if (QtDateTimePropertyManager *dateTimeManager = qobject_cast<QtDateTimePropertyManager *>(manager)) {
         return dateTimeManager->value(internProp);
     } else if (QtKeySequencePropertyManager *keySequenceManager = qobject_cast<QtKeySequencePropertyManager *>(manager)) {
-        return keySequenceManager->value(internProp);
+        return QVariant::fromValue(keySequenceManager->value(internProp));
     } else if (QtCharPropertyManager *charManager = qobject_cast<QtCharPropertyManager *>(manager)) {
         return charManager->value(internProp);
     } else if (QtLocalePropertyManager *localeManager = qobject_cast<QtLocalePropertyManager *>(manager)) {