Hey Zhimin, Sorry for the late reply.
You were right. This issue is fixed in latest git. Regards, koen 2009/5/15 zhimin song <[email protected]>: > hi, all > this is the test code based on wt-2.99.1 and Ubuntu, it does not contain the > #include files for clarity: > > class Test : public WApplication { > > public: > > Test(const WEnvironment& env); > > private: > > WStandardItemModel *model; > void cerr(WModelIndex tl, WModelIndex rb); > }; > > Test::Test(const WEnvironment& env) > :WApplication(env) { > > WStackedWidget *ex = new WStackedWidget(root()); > > Ext::TableView *tv = new Ext::TableView(ex); > tv->resize(WLength(1000), WLength(100)); > model = new WStandardItemModel(2, 3, this); > model->setHeaderData(0, boost::any(WString("test"))); > model->setHeaderData(1, boost::any(WString("test"))); > model->setHeaderData(2, boost::any(WString("result"))); > model->setData(0, 0, boost::any(WString("item"))); > model->setData(0, 1, boost::any(WString("item"))); > model->setData(1, 0, boost::any(WString("item"))); > model->setData(1, 1, boost::any(WString("item"))); > tv->setModel(model); > > Ext::ComboBox *iso = new Ext::ComboBox(); > iso->addItem("yes"); > iso->addItem("no"); > > tv->setEditor(0, iso); > tv->setEditor(1, iso); > > model->dataChanged().connect(SLOT(this, Test::cerr)); > } > > void Test::cerr(WModelIndex tl, WModelIndex rb) { > std::cerr << "data changed signal emits..." << std::endl; > if(tl.column() != 2) > model->setData(0, 2, boost::any(WString("changed.."))); > } > > Regards > zhimin > > ------------------------------------------------------------------------------ > Crystal Reports - New Free Runtime and 30 Day Trial > Check out the new simplified licensing option that enables > unlimited royalty-free distribution of the report engine > for externally facing server and web deployment. > http://p.sf.net/sfu/businessobjects > _______________________________________________ > witty-interest mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/witty-interest > > ------------------------------------------------------------------------------ Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT is a gathering of tech-side developers & brand creativity professionals. Meet the minds behind Google Creative Lab, Visual Complexity, Processing, & iPhoneDevCamp as they present alongside digital heavyweights like Barbarian Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com _______________________________________________ witty-interest mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/witty-interest
