Hey Hadaas,

2009/11/30 hadass yaari <[email protected]>:
> Hello everybody,
> I want to be able to pass parameters to the method that the
> WText->clicked().connect method gets.
> In all of the examples I saw that just a method with 0 parameters is used
> but I read in the references that there are signals that gets arguments (up
> to 6). I tried to call them but didn't succeeded.
> How can I do that?
> Maybe I need to connect another signal and not the built in? If so - how can
> I connect it the mouse click on the text?

You can use a WSignalMapper to pass an additional argument to the
slot. It is designed to handle the typical case that you connect many
signals to a single slot, which is perhaps your use case ?

Regards,
koen

------------------------------------------------------------------------------
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to