hi, Nianzhong:
You can refer to the WSignalMapper in the Wt doc or in this maillist, good
luck.
Regards
Zhimin

2010/2/26 <[email protected]>

>
> 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&#174; 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
>
>
------------------------------------------------------------------------------
Download Intel&#174; 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