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

_______________________________________________
Development mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/development

Reply via email to