diff --git a/src/corelib/kernel/qproperty.h b/src/corelib/kernel/qproperty.h index bb89dbf94f..4013b8c92b 100644 --- a/src/corelib/kernel/qproperty.h +++ b/src/corelib/kernel/qproperty.h @@ -407,7 +407,7 @@ public: bool setBinding(const QUntypedPropertyBinding &newBinding) { - if (newBinding.valueMetaType().id() != qMetaTypeId()) + if (!newBinding.isNull() && newBinding.valueMetaType().id() != qMetaTypeId()) return false; setBinding(static_cast &>(newBinding)); return true;