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: 28
Registered: ‎12-19-2012
My Device: BB 10
My Carrier: BB
Accepted Solution

'QmlDocument' has no member named 'createRootNode'

Hello All,

 

I have just started the Development in BB 10 using cascade / C++,

And I have followed the first turorial tutorial from the Developer portal.

this took me around to days to sort out the Simulator/IDE Issues and the vertual machines ofcourse.

Anyways, the Issue is When I try to add some functionality to it like 

 

appPage = qml->createRootNode<Page>();

 

I got this error

'QmlDocument' has no member named 'createRootNode'

 

Now tell me one thing if the declaration and constructors or other parts are loaded then why its unable to find the remaing mart or methods from same class?

 

Ex. 

AbstractPane *root = qml->createRootObject<AbstractPane>();

 

this worked perfectly fine.

 

Please help me in this regard.

 

 

Dear RIM, I really appriciate your effort to completely redesign the OS from ground-up.

But please make sure that a developer dont waste time in such configurations things. I know many are well aware of these but if I am concerned I am from XCODE background and not that much familier with Eclipse.So its like wasting time in these things which can be used to build great apps.

 

 

Regards,

Dhanesh

Developer
Posts: 37
Registered: ‎09-04-2012
My Device: Blackberry 10 Dev Alpha
My Carrier: Vodafone Mumbai

Re: 'QmlDocument' has no member named 'createRootNode'

use createRootObject its changed in the gold sdk.
Highlighted
Developer
Posts: 526
Registered: ‎05-17-2009
My Device: 9900
My Carrier: ATT

Re: 'QmlDocument' has no member named 'createRootNode'

They got rid of createRootNode with Beta3, createRootObject is now the right method to use.
Like all of my posts