Hello,
I just use boost::bind(), which works great, but I don't know if that is the 
correct way to do it.

Ștefan S.

On Friday 26 February 2010 09:24:01 [email protected] wrote:
> Hi, all:
> 
> I have an handler function just like:
> 
>         void show(int i)
>         {
>                 printf("%d\n", i);
>         }
> 
> and I define a WPushButton *b = new WPushButton("Test", root()), then
> using clocked() signal to connect to SLOT:
> 
> b->clicked().connect(SLOT(this, show)); // I don't know how to write
>                                              // this code here. show needs
>                                        // parameter.
> 
> so, how to do this.
> 
> (Just an example)
> 
> ----
> Thanks
> Jiongliang

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to