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

Posts: 813
Registered: ‎05-29-2012
My Device: see later
My Carrier: see later

Call a pizza sample app

I am trying to figure out how its done.



what does this line stand for


  qmlRegisterType<bb::system:Smiley Tonguehone>("bb.system.phone", 1, 0, "Phone");
    bb::data&colon;Smiley Very HappyataSource::registerQmlTypes();




and this line

root.startSearch() is called when click the button, how does it call function inside pizzariasearcher function?


I like to know step by step, how the application goes.

Posts: 17,025
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: Call a pizza sample app

qmlRegisterType makes a Qt class known to QML, allowing you to use the class, its Q_INVOKABLE methods and its properties from QML.

i am not familiar with the sample, but root could be the c++ main class and startSearch a method in there.
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter