diff --git a/src/corelib/kernel/qproperty_p.h b/src/corelib/kernel/qproperty_p.h index 6fcef939f7e..742ef446ca2 100644 --- a/src/corelib/kernel/qproperty_p.h +++ b/src/corelib/kernel/qproperty_p.h @@ -551,7 +551,7 @@ public: const bool inWrapper = inBindingWrapper(storage); if (bd && !inWrapper) notify(bd); - if constexpr (Signal != nullptr) { + if constexpr (!std::is_null_pointer_v) { if constexpr (SignalTakesValue::value) (owner()->*Signal)(value()); else