[Development] Behaviour change in QML in Qt 5.8 regarding null
Thiago Macieira
thiago.macieira at intel.com
Tue Sep 27 18:31:14 CEST 2016
On terça-feira, 27 de setembro de 2016 15:29:16 PDT Simon Hausmann wrote:
> That said, I think it can be written without #ifdef perhaps by using
> QVariant::isNull() ?
>
>
> (QVariant(nullptr) maps to isNull() as well, right? ;-)
It should.
But QVariant(QString()) [after you bypass C++'s most vexing parse] also has
isNull() == true. Does the QML engine ever generate those?
Note that user code might.
--
Thiago Macieira - thiago.macieira (AT) intel.com
Software Architect - Intel Open Source Technology Center
More information about the Development
mailing list