Hey! Call setModelColumn method of WComboBox and set it to index of column in which data to be displayed lives.
Regards, Boris Nagaev On Fri, Dec 27, 2013 at 1:49 PM, Muhammad Nasser Al-Noimi <mnno...@gmail.com> wrote: > Hi, > > Can any one give me a hint on how to use QueryModel in order to set items > for WComboBox. I tried the following but something is wrong with it: > > class Country; > typedef dbo::ptr<Country> CountryPtr; > WComboBox* combo; > ... > dbo::QueryModel<CountryPtr> *model = new dbo::QueryModel<CountryPtr>(); > model->setQuery(session->find<Country>()); > combo->setModel(model); > > Best regards, > Nasser Al-Noimi > > ------------------------------------------------------------------------------ > Rapidly troubleshoot problems before they affect your business. Most IT > organizations don't have a clear picture of how application performance > affects their revenue. With AppDynamics, you get 100% visibility into your > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics > Pro! > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > _______________________________________________ > witty-interest mailing list > witty-interest@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/witty-interest > ------------------------------------------------------------------------------ Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk _______________________________________________ witty-interest mailing list witty-interest@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/witty-interest