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
Developer
babakar
Posts: 738
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::Phone::smileytongue:hone>("bb.system.phone", 1, 0, "Phone");
    bb::data&colon;:smileyvery-happy:ataSource::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.

Please use plain text.
Developer
simon_hain
Posts: 16,113
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
Please use plain text.