diff --git a/src/corelib/kernel/qproperty_p.h b/src/corelib/kernel/qproperty_p.h index 1193e3e1d2c..e9a7a7f198a 100644 --- a/src/corelib/kernel/qproperty_p.h +++ b/src/corelib/kernel/qproperty_p.h @@ -422,7 +422,7 @@ public: bool setBinding(const QUntypedPropertyBinding &newBinding) { - if (!newBinding.isNull() && newBinding.valueMetaType().id() != qMetaTypeId()) + if (!newBinding.isNull() && newBinding.valueMetaType() != QMetaType::fromType()) return false; setBinding(static_cast &>(newBinding)); return true;