Caller in Kdevelop?!

Harald Fernengel harry at kdevelop.org
Tue Jul 29 16:36:43 BST 2003


Hi,

On Tuesday 29 July 2003 10:04, you wrote:
> Hello,
>      I am new to Kdevelop 2.1.3 and this is my first posting after long
> reading :-) Recently i am develop a simple program to train myself abt
> Kde/Qt and i faced some problems, 1 of them is:
>
> I make 3 buttons, btn1, btn2, btn3 in a Form, when user click on one of the
> button, the caption of the Button (1,2,3..) will show in a textbox, instead
> of making 3 calling function to call 3 event, Can I make all 3 buttons call
> to same event and send some para, like btn NAME, Caption... to event
> handle?
>
> So event handle can get info by CallerBtn.Caption ...etc??!!

you can use sender() in your slot to determine who sent the signal (check for 
0 pointers!).

Otherwise, you can also use a QButtonGroup.

Best regards,
Harry

-
to unsubscribe from this list send an email to kdevelop-request at kdevelop.org with the following body:
unsubscribe »your-email-address«



More information about the KDevelop mailing list