Hey, Yufeng
Just remember: if this pBox->sactivated() signal just emit() Signal no
parameter,
then you SLOT function cann't take any parameter also.
If you want your SLOT function can have parameters, maybe you need define
your own
emit Signal function, just as pBox->sactivated().
> hi:
> I define a function :
> void MyWidget::comboChanged(string sVal)
> {
> if(sVal=="one")
> {
> ...
> }
> else
> if(sVal=="two")
> ...
> }
> how to connect this function to WComboBox sactivated Signal ?
> Wt::WComboBox* pBox;
> pBox = new Wt::WComboBox(this);
> pBox->addItem ("one");
> pBox->addItem ("two");
> pBox->addItem ("three");
> pBox->sactivated().connect(SLOT(this, MyWidget::comboChanged));
---
B.R.
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