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
javayoung
Posts: 313
Registered: ‎05-31-2010
My Device: Alpha 10, Bold 9900, Storm 9530, Tour 9630, Curve 9320, Curve 8900
Accepted Solution

A problem of signal connect

[ Edited ]

When the app run the connection with signal and slot in QML, it will automatically emit this signal. But It is actually not expected to emit the signal at that time,  Did someone also meet this problem and how did you force not to emit the signal when connects.

 

My source code is as below:

onCreationCompleted: {

    dataLoadDone.connect(tabxxx.dataLoaded());

    // When run to here, the signal of dataLoadStart is emit. But I don't want it to be emit at here. Don't know how to fix it.

}

 




p(^_^)q
Good good study, day day up
Please use plain text.
Developer
Zmey
Posts: 1,512
Registered: ‎12-18-2012
My Device: PlayBook, Z10, DAC

Re: A problem of signal connect

Hi,

You're calling the function here. Try removing the brackets:
dataLoadDone.connect(tabxxx.dataLoaded);

Andrey Fidrya, @zmeyc on twitter
Please use plain text.