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

Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.

Regular Contributor
Posts: 70
Registered: ‎09-06-2012
My Device: Developer
My Carrier: Bell Mobility

QML slot and signal emitted from C++

The more I read the documentation the examples the more confused I get.


At this point I have given up trying to connect a QML signal with a C++ slot as the connect always fails (for some reason)  and in fact program hangs with SIGABRT. Though,  I thought I had eventually found a way to get address of Control ( Page or Container) where signal is defined.


However, my current problem is probably the same issue anyways. I want to send information to a number of QML Controls from C++. Thought of using onTouch for these controls even though not sure how to pass isDown event.

Could create another custom slot.


But either way I'm back to how do I identify these controls so that I can emit the signals

  control1.onTouch(),    control2.onTouch(), etc


Am I back to trying to find the child object "Control1" and   using  "emit control1obj->onTouch();"


Is there an equivalent to "this" in QML?




Posts: 91
Registered: ‎09-25-2012
My Device: bb10 alpha
My Carrier: free

Re: QML slot and signal emitted from C++

I didn't understand.. could you be more clear ?
What do you exactly want to do ?
A code example should be greate

a lover of Qt