Welcome to the official BlackBerry Support Community Forums.


inside custom component

Native Development

New Developer
Posts: 153
Registered: ‎04-12-2010
My Device: Storm

QML type of QVariant??

In C++ the QMetatype can be used to find out if a variant is of certain type (image, string,etc) so how do yo do this in QML ??? Is there some library I need to include??? Pretty basic question haven't found  a basic answer yet

Regular Contributor
Posts: 70
Registered: ‎09-06-2012
My Device: Developer

Re: QML type of QVariant??

I am thinking that QML is Java Script and doesn't recognize Q objects. There appears to be an implicit conversion in the calls between QML and  c++.


Are not all Java Script variables essentially strings treated like numbers when necessary?