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
Contributor
Posts: 46
Registered: ‎03-25-2011
My Device: Blackberry Z10
My Carrier: KPN

no such signal ( touch on imageview )

Hi,

 

a little problem here..

 

i'm using qml to create the pages then in c++ i do all the actions

so in my c++ code i'm doing to following:

mImageView = root->findChild<ImageView*>("latestCast");

bool res = connect(mImageView, SIGNAL(touch (bb::cascades::TouchEvent *event)), this, SLOT(latestClicked(bb::cascades::TouchEvent *event)));

to bad this is generating the following:

 

No such signal bb::cascades::ImageView::touch (bb::cascades::TouchEvent *event)

Any solutions for this?

thx

Developer
Posts: 229
Registered: ‎01-12-2013
My Device: z30
My Carrier: Mobile Vikings

Re: no such signal ( touch on imageview )

The documentation says that that signal does not exist. (https://developer.blackberry.com/cascades/reference/bb__cascades__imageview.html)

 

You can use an ImageButton for that maybe? Then you can just listen for the click event.

______________________________________________________
BB10-OAuth: GitHub