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
Developer
Philipk
Posts: 676
Registered: ‎05-06-2012
My Device: Dev Alpha & PlayBook
My Carrier: wifi
Accepted Solution

Noob Question

Trying to follow the instructions here --> https://developer.blackberry.com/cascades/documentation/dev/integrating_cpp_qml/

 

But when I add 

 

    QmlDocument *qml = QmlDocument::create("asset:///main.qml").parent(&app);

 

I get  back...

 

Multiple markers at this line

- 'qml' was not declared in this scope

- 'QmlDocument' was not declared in this 

scope

- 'QmlDocument' is not a class or namespace

_________________________________________________________
co-founder of Diaree | BB Dev for PictureThis
Please use plain text.
Developer
jalue
Posts: 196
Registered: ‎03-04-2013
My Device: BB Z10
My Carrier: Rogers

Re: Noob Question

[ Edited ]

You need the corresponding include statement for QmlDocument..

#include <bb/cascades/QmlDocument>
// And perhaps this as well
using namespace bb::cascades;

 

Please use plain text.
Developer
Philipk
Posts: 676
Registered: ‎05-06-2012
My Device: Dev Alpha & PlayBook
My Carrier: wifi

Re: Noob Question

Thanks it's working now.
_________________________________________________________
co-founder of Diaree | BB Dev for PictureThis
Please use plain text.