[Development] Behaviour change in QML in Qt 5.8 regarding null
Thiago Macieira
thiago.macieira at intel.com
Wed Sep 28 07:29:08 CEST 2016
On quarta-feira, 28 de setembro de 2016 01:22:33 PDT Allan Sandfeld Jensen
wrote:
> > QVariant::fromValue(nullptr).isNull() == false
> > QVariant(QMetaType::Nullptr).isNull() == true
>
> And QVariant(nullptr) doesn't compile.
>
> We should probably fix the fromValue constructor.
I don't think so. This is also false:
QVariant::fromValue<void *>(nullptr).isNull()
--
Thiago Macieira - thiago.macieira (AT) intel.com
Software Architect - Intel Open Source Technology Center
More information about the Development
mailing list