Qml notes
How to get Qml object from c++
Qml:
Button { id:btnPower objectName:"oBtnPower" text:"Hello" }
c++:
//app.cpp #include <bb/cascades/Button> ... QmlDocument *qml = QmlDocument::create("main.qml"); AbstractPane *root = qml->createRootObject<AbstractPane>(); //getting the button object QPointer<bb::cascades::Button> oBtnPower= root->findChild<Button*>("oBtnPower"); oBtnPower->setText("Omg");