10-05-2012 03:06 AM
Hello, I'm quite new in BB10 development. I have a question:
I'm trying to make image button with text. My idea was that I'll create custom component consisting of two components:
ImageButton
Label
Label will be over Image Button and will contain customisable text
It basically works but it seems that Label swallows click signal and it is not propagated to the ImageButton. I tried to set
setFocusPolicy(FocusPolicy::None); to Label but it does not work.
My questio is: How to make it properly? Should I capture clicked() signal on Label and resend it to the ImageButton?
Thanks
Tom
Solved! Go to Solution.
10-05-2012 09:46 AM
Hi!
This may help you!
Refer Overlap touch policies in
https://developer.blackberry.com/cascades/document
OR
Refer Create the source for the Timer class
I think,
The signal of one control can be connected to the signal of another control.
- Raju
12-30-2012 12:13 AM
Hi ,
Please post the source code its too urgent for me.
12-30-2012 05:26 AM
This can be useful to u!
button1.clicked.connect(button2.clicked);
because any signal can be connected to any slot or signal.....am I right !!!
-Regards
Raju
12-30-2012 08:07 AM
12-30-2012 08:44 AM
It's possible to connect a signal directly to another signal. Please see this page for details:
http://doc.qt.digia.com/qt/signalsandslots.html