Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
New Developer
Posts: 167
Registered: ‎04-12-2010
My Device: Storm
My Carrier: Verizon

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

Highlighted
Regular Contributor
Posts: 70
Registered: ‎09-06-2012
My Device: Developer
My Carrier: Bell Mobility

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?