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
Regular Contributor
sonalb123
Posts: 63
Registered: ‎08-05-2013
My Device: Blackberry-10 webworks
My Carrier: zcon
Accepted Solution

Context: Failed to find target node with id 33

Hi,


In my qml file I used sheet component. On button click I tried to call cpp function which calls the web service and according to web service response I have to redirect to particular qml. But while opening qml from cpp  I am getting foolowing errors.

 

 

libpng warning: iCCP: known incorrect sRGB profile
Context: Failed to find target node with id  33 

 For a moment I am able to redirect to particular qml but control came back to previous qml.  

I am not able to understand why this error came? When I run my application one day before it was working fine. when I reset the device and upgrade the os to 10.2  I am getting this error. 

Here is my code in cpp:

       QmlDocument *qml = QmlDocument::create("asset:///backgroundProcessImageFile.qml");
	qml->setContextProperty("RoamAssist", this);
	AbstractPane *root = qml->createRootObject<AbstractPane>();
	globalApp->setScene(root);

 

 

 

Please use plain text.
Developer
Benecore
Posts: 529
Registered: ‎08-31-2013
My Device: Q10, Z10LE, Nokia N950, DAB....
My Carrier: Telekom Slovakia

Re: Context: Failed to find target node with id 33

[ Edited ]

I have same warnings on my apps when i use some images, but my (and your) app run just fine, or?

 

EDIT:

Yop, i get just one line

libpng warning: iCCP: known incorrect sRGB profile

and works fine :smileywink:



If helped give a like. If your problem was solved mark the post as "Solution"
Portfolio: BlackBerry Nokia
Social: Twitter | Facebook
About Me / Blog DevPDA | Blog
Please use plain text.
Regular Contributor
sonalb123
Posts: 63
Registered: ‎08-05-2013
My Device: Blackberry-10 webworks
My Carrier: zcon

Re: Context: Failed to find target node with id 33

No I am not able to proceed further. For a second I am able to open new qml file but again came back to previous screen and then application not working.

Please use plain text.
Regular Contributor
sonalb123
Posts: 63
Registered: ‎08-05-2013
My Device: Blackberry-10 webworks
My Carrier: zcon

Re: Context: Failed to find target node with id 33

Hey...my issue is solved....

Insted of creating UI using sheet I just create new page and open it using NavigationPane.

I still dont know whether this issue is because of sheet component or due to os version upgradation.

 



  

Please use plain text.
Developer
Benecore
Posts: 529
Registered: ‎08-31-2013
My Device: Q10, Z10LE, Nokia N950, DAB....
My Carrier: Telekom Slovakia

Re: Context: Failed to find target node with id 33

Great :smileywink:



If helped give a like. If your problem was solved mark the post as "Solution"
Portfolio: BlackBerry Nokia
Social: Twitter | Facebook
About Me / Blog DevPDA | Blog
Please use plain text.