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
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?

 

 

 

Developer
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