I'm trying to figure out how to map between a Wt::Ext::ComboBox and a
WStandardItemModel when an item is selected in the combo box.

E.g. my model contains:

ID    DISPLAY TEXT
1     Bugs Bunny
2     Mickey Mouse
3     Road Runner
4     Kermit
5     Bugs Bunny (duplicate name, different ID)

My ComboBox is connect to column 1 and shows:
Bugs Bunny
Mickey Mouse
Road Runner
Kermit

I have a SLOT that calls my method when an item in the combo box is
selected.

In my method, It's easy to get "Bugs Bunny", but I need the ID that is also
stored in the model in order to uniquely resolve which "Bugs Bunny" has been
selected.  Any suggestions on how to do this, or which examples demonstrate
this?

Thanks,
Craig

-- 
Craig Miller
Geospatial Software Architect
------------------------------------------------------------------------------
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