07-06-2012 11:06 AM
Hi
I have posted a forum regard loading the QML file and attachjed the link below which I made conversion with the Native development team..Need immediate to solve this problem.
http://supportforums.blackberry.com/t5/Native-Deve
Thanks.
07-09-2012 11:00 AM
If I understand correctly, you are trying to use Loader directly in QML.
The other thread shows how to do this in C++.
You can use classes documented here:
https://developer.blackberry.com/cascades/referenc
So the error actually is correct and is not misleading: it claims Loader is not a class because Loader is not a class.
Look at sample stampcollector.
Note the lines:
QmlDocument *qml = QmlDocument::create().load("main.qml");
and
QmlDocument *contentQml = QmlDocument::create().load("ContentPage.qml");
So this loads both pages separately in C++. Use the objectName to find the pane (e.g. navigation pane) that you want to update with the new page. Samples stampcollector shows how to do that.
Does this answer the question? If so, please mark as solution. If not, can you clarify exactly where you need help?
Stuart
07-09-2012 11:29 AM
Is this a separate question from http://supportforums.blackberry.com/t5/Cascades-De
Stuart