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
senimii
Posts: 50
Registered: ‎04-27-2012
My Device: BlackBerry Q10
My Carrier: 447713279379

DONT CREATE the UI, main.qml

In the code below; I do not want to access the main.qml but I want it to display a title instead like-----> YIPEEE!!! (upon pressing a button for it).

 

// Create the UI
QmlDocument *qml = QmlDocument::create("asset:///main.qml");
qml->setContextProperty("_app", this);
AbstractPane *root = qml->createRootObject<AbstractPane>();
Application::instance()->setScene(root);

 

Please what do I need to do?

NFC on my mind!!
Please use plain text.
Developer
peter_strange
Posts: 19,601
Registered: ‎07-14-2008
My Device: Not Specified

Re: DONT CREATE the UI, main.qml

Can you please clarify your question.  This code will just display whatever is in main.qml, and it coud include

YIPEEE!!!

Please use plain text.
Regular Contributor
senimii
Posts: 50
Registered: ‎04-27-2012
My Device: BlackBerry Q10
My Carrier: 447713279379

Re: DONT CREATE the UI, main.qml

Yea you are right....I am trying to invoke a SERVICE that on trigger will simply display YIPEEE!!! And not bring up a main page....this should happen whenever I click a SERVICE button.....simply put invoking a text label and not a page!!

NFC on my mind!!
Please use plain text.